Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@fluentui/react-carousel
Advanced tools
A composable carousel component that enables pagination with minimal rerenders
React Carousel components for Fluent UI React
A Carousel is a sliding viewport that enables a list of tab panels to be hidden offscreen while still remaining accessible via rotating controls or keyboard interactions.
For full screen banners, hidden cards will be set to inert and can be accessed via the underlying nav controls (prev/next/pagination), while smaller responsive CarouselCards can be explored with keyboard navigation (left/right arrow keys) and group focus (Enter/Esc) to void lengthy tabIndex sequences.
The React Carousel uses direct DOM manipulation to ensure that state can be updated without driving a react render cycle of the CarouselCards themselves, users may subscribe to visibility event callbacks or activeIndex supplied via context for updating local state on carousel movement.
A CarouselAnnouncer class is provided that will announce page changes when context is updated for accessibility users.
<Carousel groupSize={1} circular>
<CarouselSlider>
{Cards.map((card, index) => (
<CarouselCard key={`image-${index}`} index={index}>
Card {index + 1}
</CarouselCard>
))}
</CarouselSlider>
<CarouselNavContainer next={{ 'aria-label': 'go to next' }} prev={{ 'aria-label': 'go to prev' }}>
<CarouselNav>{index => <CarouselNavButton aria-label={`Carousel Nav Button ${index}`} />}</CarouselNav>
</CarouselNavContainer>
<CarouselAnnouncer>
{(currentIndex, totalSlides, _slideGroupList) => {
return `Slide ${currentIndex + 1} of ${totalSlides}`;
}}
</CarouselAnnouncer>
</Carousel>
FAQs
A composable carousel component that enables pagination with minimal rerenders
The npm package @fluentui/react-carousel receives a total of 28,096 weekly downloads. As such, @fluentui/react-carousel popularity was classified as popular.
We found that @fluentui/react-carousel demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 12 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.