API reference: @salmonui/navigation/accordion
AccordionItemPropsinterface
import type { AccordionItemProps } from '@salmonui/navigation/accordion';interface AccordionItemProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
value: string;
header: ReactNode;
icon?: ReactNode;
disabled?: boolean | undefined;
hidden?: boolean | undefined;
keepMounted?: boolean | undefined;
forceMount?: boolean | undefined;
headerProps?: ButtonHTMLAttributes<HTMLButtonElement> | undefined;
panelProps?: HTMLAttributes<HTMLDivElement> | undefined;
children?: ReactNode;
ref?: Ref<HTMLDivElement> | undefined;
}
| Name | Signature | Description |
|---|---|---|
value | value: string; | Stable item key reported in |
header | header: ReactNode; | Header content (the label of the header button and of the panel region). |
iconoptional | icon?: ReactNode; | Decorative icon before the header content. |
disabledoptional | disabled?: boolean | undefined; | Header button gets |
hiddenoptional | hidden?: boolean | undefined; | Renders nothing. |
keepMountedoptional | keepMounted?: boolean | undefined; | Overrides the accordion's |
forceMountoptional | forceMount?: boolean | undefined; | Overrides the accordion's |
headerPropsoptional | headerProps?: ButtonHTMLAttributes<HTMLButtonElement> | undefined; | Props of the header |
panelPropsoptional | panelProps?: HTMLAttributes<HTMLDivElement> | undefined; | Props of the panel region ( |
childrenoptional | children?: ReactNode; | Panel content; mounted on first expand. |
refoptional | ref?: Ref<HTMLDivElement> | undefined; |