Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.
This repository was archived by the owner on Feb 19, 2025. It is now read-only.

Feat: Accordian/collapse #102

@MildTomato

Description

@MildTomato

options could include:

expandIconPosition prop - , for left or right chevron position
• ability to show 1, or multiple items (see Vercel for singular examples)
bordered prop - to show border/background version, if false then show no background/border
expandIcon prop - ReactNode prop to use your own chevron icon

example of in use:

<Accordian
  defaultActiveId={['1']}
  onChange={callback}
  expandIconPosition="left"
>
  <Accordian.Item label="This is panel header 1" id="1">
    <div>{text}</div>
  </Accordian.Item>
  <Accordian.Item label="This is panel header 2" id="2">
    <div>{text}</div>
  </Accordian.Item>
  <Accordian.Item label="This is panel header 3" id="3">
    <div>{text}</div>
  </Accordian.Item>
</Accordian>

vercel example
https://user-images.githubusercontent.com/8291514/105789085-c051aa80-5fbc-11eb-85da-013549f5cd33.mov
Screenshot 2021-01-26 at 10 07 16

antd example
https://ant.design/components/collapse/
Screenshot 2021-01-26 at 09 55 20

materializeUI example
https://material-ui.com/components/accordion/
Screenshot 2021-01-26 at 10 06 37

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions