Skip to Content
✨ QuickCode UI keeps growing! More components, more features, and more ways to make your projects shine. Stay tuned & maybe… hire me or sponsor me 😉 
DocumentationExpandableCard

ExpandableCard

A collapsible card for showing and hiding contextual information.

Example

Expandable Card Example

Account Settings

Props

ExpandableCard

PropTypeDefaultDescription
valuestringUnique key for animation layout
openbooleanControls card open state
onToggle() => voidToggles open state
classNamestringCustom classes
…propsReact.ComponentProps<'div'>All div props

ExpandableCard.Item

PropTypeDefaultDescription
childrenReact.ReactNodeHeader content
classNamestringCustom classes
…propsReact.ComponentProps<'div'>All div props

ExpandableCard.Content

PropTypeDefaultDescription
childrenReact.ReactNodeContent body
classNamestringCustom classes
…propsReact.ComponentProps<'div'>All div props
Last updated on