Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@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 36,241 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.