Accordion
The accordion component enables the user to show and hide sections of content on a page.
Header
Content
import React from 'react';
import { Accordion } from 'chic-ui';
<>
<Accordion header="Header" description="Content" />
</>;
API
import { Accordion } from 'chic-ui';
Name | Type | Default | Description |
---|---|---|---|
header (required) | string | Header of the Accordion | |
description | string | Content enclosed inside accordion | |
className | string | Provide external classnames to the component | |
style | React.CSSProperties | Override default styling of the component |