@midas-ds/accordion
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

accordion

npm i @midas-ds/accordion
import {
  Accordion,
  AccordionItem,
  AccordionTrigger,
  AccordionContent,
} from '@midas-ds/accordion'
;<Accordion
  collapsible
  headingTag="h3"
  type="single"
>
  <AccordionItem value="Ett">
    <AccordionTrigger>Trigger Ett</AccordionTrigger>
    <AccordionContent>Content Ett</AccordionContent>
  </AccordionItem>
  <AccordionItem value="Två">
    <AccordionTrigger>Trigger Två</AccordionTrigger>
    <AccordionContent>Content Två</AccordionContent>
  </AccordionItem>
  <AccordionItem value="Tre">
    <AccordionTrigger>Trigger Tre</AccordionTrigger>
    <AccordionContent>Content Tre</AccordionContent>
  </AccordionItem>
  <AccordionItem value="Fyra">
    <AccordionTrigger>Trigger Fyra</AccordionTrigger>
    <AccordionContent>Content Fyra</AccordionContent>
  </AccordionItem>
</Accordion>

Readme

Keywords

none

Package Sidebar

Install

npm i @midas-ds/accordion

Weekly Downloads

21

Version

1.0.3

License

none

Unpacked Size

45.9 kB

Total Files

12

Last publish

Collaborators

  • wilhelmconsid