Interface: RsAccordionProps
Props for the RsAccordion component.
Extends
Omit<PanelGroupProps,"accordion"|"activeKey"|"defaultActiveKey">
Properties
accordion?
optionalaccordion?:boolean
Whether only one panel can be expanded at a time.
activeKey?
optionalactiveKey?:AccordionActiveKey
Expanded panel event key(s). When accordion is false, an array expands every matching panel.
as?
optionalas?:ElementType<any, keyof IntrinsicElements>
You can use a custom element for this component
Inherited from
Omit.as
bordered?
optionalbordered?:boolean
Show border
Inherited from
Omit.bordered
children?
optionalchildren?:ReactNode
Accordion panel children.
Overrides
Omit.children
className?
optionalclassName?:string
CSS class name.
Overrides
classPrefix?
optionalclassPrefix?:string
The prefix of the component CSS class
Inherited from
RsAutoCompleteProps.classPrefix
defaultActiveKey?
optionaldefaultActiveKey?:AccordionActiveKey
Initially expanded panel event key(s) when activeKey is unset.
When accordion is false, an array expands every matching panel on mount.
onSelect?
optionalonSelect?: (eventKey,event) =>void
Toggles the callback function for the expand panel
Parameters
eventKey
KeyType | undefined
event
SyntheticEvent
Returns
void
Inherited from
Omit.onSelect
style?
optionalstyle?:CSSProperties
Additional style