Socket
Book a DemoInstallSign in
Socket

@ds-kit/accordion

Package Overview
Dependencies
Maintainers
4
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ds-kit/accordion

Accordion component

1.2.2
latest
npmnpm
Version published
Weekly downloads
7
-41.67%
Maintainers
4
Weekly downloads
 
Created
Source

title: "Accordion" slug: "/packages/accordion" category: "control" componentNames:

  • "Accordion"
  • "AccordionPanel"

Accordion

Accordions can be used to hide additional information while displaying only the headings for each item.

import { Accordion, AccordionPanel } from "@ds-kit/accordion"

Basic Accordion

<Accordion>
  <AccordionPanel header="Panel 1">
    <P>
      Datastory.org is a new platform for data storytelling. We make the world’s
      most important information available for free through beautiful apps and
      stories.
    </P>
  </AccordionPanel>
  <AccordionPanel header="Panel 2">
    <P>
      Datastory.org is a new platform for data storytelling. We make the world’s
      most important information available for free through beautiful apps and
      stories.
    </P>
  </AccordionPanel>
  <AccordionPanel header="Panel 3">
    <P>
      Datastory.org is a new platform for data storytelling. We make the world’s
      most important information available for free through beautiful apps and
      stories.
    </P>
  </AccordionPanel>
  <AccordionPanel header="Panel 4">
    <P>
      Datastory.org is a new platform for data storytelling. We make the world’s
      most important information available for free through beautiful apps and
      stories.
    </P>
  </AccordionPanel>
</Accordion>

Accordion with custom Header component

<Accordion>
  <AccordionPanel header={<Heading size="xs">Panel 1</Heading>}>
    <Div mt="1rem" mb="2rem" ml="1rem">
      <P>
        Datastory.org is a new platform for data storytelling. We make the
        world’s most important information available for free through beautiful
        apps and stories.
      </P>
    </Div>
  </AccordionPanel>
  <AccordionPanel header={<Heading size="xs">Panel 2</Heading>}>
    <Div mt="1rem" mb="2rem" ml="1rem">
      <P>
        Datastory.org is a new platform for data storytelling. We make the
        world’s most important information available for free through beautiful
        apps and stories.
      </P>
    </Div>
  </AccordionPanel>
  <AccordionPanel header={<Heading size="xs">Panel 3</Heading>}>
    <Div mt="1rem" mb="2rem" ml="1rem">
      <P>
        Datastory.org is a new platform for data storytelling. We make the
        world’s most important information available for free through beautiful
        apps and stories.
      </P>
    </Div>
  </AccordionPanel>
  <AccordionPanel header={<Heading size="xs">Panel 4</Heading>}>
    <Div mt="1rem" mb="2rem" ml="1rem">
      <P>
        Datastory.org is a new platform for data storytelling. We make the
        world’s most important information available for free through beautiful
        apps and stories.
      </P>
    </Div>
  </AccordionPanel>
</Accordion>

FAQs

Package last updated on 06 Dec 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.