
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@gluestack-ui/accordion
Advanced tools
A universal headless accordion component for React Native, Next.js & React
@gluestack-ui/accordion
The Accordion component is a versatile and interactive user interface element, designed to efficiently organize and present content in a compact space.
To install the component, run the following command in your terminal. This will add the component to your project's dependencies and allow you to use it in your project.
npx install @gluestack-ui/accordion
// import the styles
import {
Root,
Item,
Header,
Trigger,
Content,
Icon,
TitleText,
ContentText,
} from '../components/core/accordion/styled-components';
// import the createAccordion function
import { createAccordion } from '@gluestack-ui/accordion';
// Understanding the API
const Accordion = createAccordion({
Root,
Item,
Header,
Trigger,
Content,
Icon,
TitleText,
ContentText,
});
// Using the Accordion component
export default () => (
<Accordion>
<AccordionItem value="a">
<AccordionHeader>
<AccordionTrigger>
{({ isExpanded }: { isExpanded: boolean }) => {
return (
<>
<AccordionTitleText>
How do I place an order?
</AccordionTitleText>
{isExpanded ? (
// ChevronUpIcon is imported from 'lucide-react-native'
<AccordionIcon as={ChevronUpIcon} />
) : (
// ChevronDownIcon is imported from 'lucide-react-native'
<AccordionIcon as={ChevronDownIcon} />
)}
</>
);
}}
</AccordionTrigger>
</AccordionHeader>
<AccordionContent>
<AccordionContentText>
Lorem ipsum dolor sit amet consectetur, adipisicing elit.
</AccordionContentText>
</AccordionContent>
</AccordionItem>
</Accordion>
);
More guides on how to get started are available here.
FAQs
A universal headless accordion component for React Native, Next.js & React
The npm package @gluestack-ui/accordion receives a total of 27,592 weekly downloads. As such, @gluestack-ui/accordion popularity was classified as popular.
We found that @gluestack-ui/accordion demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 16 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.