0.0.16 • Published 2 months ago

@ciceksepeti/cui-accordion v0.0.16

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

@ciceksepeti/cui-accordion

npm version storybook PRs Welcome license

An accordion is a vertically stacked set of interactive headings that each contain a title, content snippet, or thumbnail representing a section of content. The headings function as controls that enable users to reveal or hide their associated sections of content. Accordions are commonly used to reduce the need to scroll when presenting multiple sections of content on a single page. See w3

Installing

Using Npm:

$ npm install @ciceksepeti/cui-accordion

Using Yarn:

$ yarn add @ciceksepeti/cui-accordion

Example

import {
  Accordion,
  AccordionHeader,
  AccordionButton,
  AccordionContent,
} from "@ciceksepeti/cui-accordion";

function Demo() {
  return (
    <Accordion>
      <AccordionHeader>
        <AccordionButton>Step 1</AccordionButton>
      </AccordionHeader>
      <AccordionContent>
        Step 1: Lorem Ipsum is simply dummy text of the printing and typesetting
        industry. Lorem Ipsum has been the industry's standard dummy text ever
        since the 1500s, when an unknown printer took a galley of type and
        scrambled it to make a type specimen book.
      </AccordionContent>
      <AccordionHeader>
        <AccordionButton disabled>Step 2</AccordionButton>
      </AccordionHeader>
      <AccordionContent>
        Step 2: Lorem Ipsum is simply dummy text of the printing and typesetting
        industry. Lorem Ipsum has been the industry's standard dummy text ever
        since the 1500s, when an unknown printer took a galley of type and
        scrambled it to make a type specimen book.
      </AccordionContent>
      <AccordionHeader>
        <AccordionButton>Step 3</AccordionButton>
      </AccordionHeader>
      <AccordionContent>
        Step 3: Lorem Ipsum is simply dummy text of the printing and typesetting
        industry. Lorem Ipsum has been the industry's standard dummy text ever
        since the 1500s, when an unknown printer took a galley of type and
        scrambled it to make a type specimen book.
      </AccordionContent>
    </Accordion>
  );
}
0.0.16

2 months ago

0.0.15

3 months ago

0.0.14

3 months ago

0.0.12

4 months ago

0.0.13

4 months ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.3

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.6

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago