Start sharing components as a team!Share components as a team!Join Bit to build your applications faster.Get Started Free

accordion-panel

v2.6.5arrow_drop_down
v2.6.5
v2.5.5
STATUS
Passing
DOWNLOADS
76
LICENSE
Apache 2.0
VISIBILITY
Public
PUBLISHED
5 months ago
SIZE
37 KB
subject
An Accordion panel.
1 contributor
Use accordion-panel in your project ?
Copied
npm i @bit/grommet.grommet.accordion-panel
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Component Example
React
React
Vue
Angular
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
revert changes
reload
toggle layout
maximize
modifieddraft
chevron_left
chevron_right

AccordionPanel

An Accordion panel.

Properties

label

The panel label.

string
node

header

If specified, the entire panel header will be managed by the caller.

node

Intrinsic element

div

Theme

accordion.heading.level

The heading level used for the accordion. Expects number.

Defaults to

4

accordion.icons.collapse

The icon to use when the panel is expanded. Expects React.Element.

Defaults to

<FormUp />

accordion.icons.expand

The icon to use when the panel is collapsed. Expects React.Element.

Defaults to

<FormDown />

accordion.border

The border to use in the accordion. Expects React.Element.

Defaults to

side: bottom, color: border