2.0.3 • Published 3 months ago

@brighthr/component-accordion v2.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

Accordion

To install, type the following into the command line at the root of your project:

npm i @brighthr/component-accordion

To implement the Accordion component into your project you’ll need to add the import:

import Accordion from '@brighthr/component-accordion';

After adding import into your project you can use it simply like:

<Accordion />

Props

NameTypeDefaultDescription
chevronPosition'left' 'right''left'Sets the chevron position.
childrenReact.ReactNodeThe content of the Accordion.
counter{count: number, status: 'default' \| 'warning' \| 'information' \| 'success' \| 'error', background: 'default' \| 'dark' \| 'white' \| 'none'}Counter is an object made up of 3 keys. count displays a number badge for the accordian to show. status sets the color theme for the badge. background sets the background color for the badge.
defaultOpenStatebooleanfalseIf true, the accordian will be open on load.
descriptionstringSets the description text.
invertedBgbooleanfalseIf true, sets the background of the children to be white.
invertedHeaderbooleanfalseIf true, sets the background of the accordion to be white.
onClick() => voidFunction for handling onClick event.
titlestringSets the title text.
2.0.3

3 months ago

2.0.2

3 months ago

2.0.1

4 months ago

2.0.0

4 months ago

1.3.6

4 months ago

1.3.5

5 months ago

1.3.4

5 months ago

1.2.0

8 months ago

1.1.1

9 months ago

1.1.0

9 months ago

1.0.1

9 months ago

1.0.0

10 months ago

1.3.3

6 months ago

1.3.2

8 months ago

1.3.1

8 months ago

1.3.0

8 months ago

1.1.2

9 months ago

0.2.3

12 months ago

0.2.2

12 months ago

0.0.20

1 year ago

0.0.21

1 year ago

0.0.22

1 year ago

0.0.23

1 year ago

0.0.16

1 year ago

0.0.17

1 year ago

0.0.18

1 year ago

0.0.19

1 year ago

0.1.0

12 months ago

0.2.1

12 months ago

0.2.0

12 months ago

0.0.11

1 year ago

0.0.12

1 year ago

0.0.13

1 year ago

0.0.14

1 year ago

0.0.15

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago