Grapes homepage1.57.0
  • Guide
  • Tokens
  • Components
    Grapes on GithubGrapes on Figma
    Interaction
    • Button
    • IconButton
    • FloatingActionBar
    • Link
    Icons
    • Icon
    • HighlightIcon
    Form
    • AmountInput
    • Autocomplete
    • AutocompleteMultiple
    • AutocompletePlace
    • CheckboxBox
    • CheckboxField
    • DatePicker
    • FormField
    • Input
    • OptionGroup
    • PasswordInput
    • PhoneInput
    • RadioBox
    • RadioField
    • RadioGroup
    • Select
    • SwitchField
    • TextArea
    • TextInput
    • Upload
    • UploadButton
    Feedback
    • Badge
    • Banner
    • Callout
    • EmptyState
    • Modal
    • ModalSlideshow
    • DeprecatedModalSlideshow
    • PageModal
    • Skeleton
    • Tag
    • Toast
    • Tooltip
    Data display
    • Accordion
    • Avatar
    • Box
    • Calendar
    • CalendarRange
    • CollapsibleList
    • FileCard
    • InfoTip
    • ListBox
    • ListView
    • Panel
    • SidePanel
    • DeprecatedPreview
    • Table
    • Timeline
    • useDateFormatter
    Navigation
    • DropdownItem
    • DropdownMenu
    • Navigation
    • NavigationItem
    • Popover
    • Tabs

    Accordion

    View source code
    • Usage
    • Props

    Accordion

    • children
      ReactNode

      The content of the Accordion, should be AccordionItem(s)

    • className
      string

      className for the element

    AccordionItem

    • children
      ReactNode

      The content of the AccordionItem

    • renderHeader
      () => ReactNode

      Function to render the item's header

    • className
      string

      className for the element

    • noAnimation
      boolean

      Whether the AccordionItem should have opening and closing animation. Has no effect when prefers-reduced-motion is set

      Default: false
    • onToggle
      (isOpen: boolean) => void

      Handler that is called when the AccordionItem is toggle

    • open
      boolean

      Whether the AccordionItem should be open

      Default: false