Getting started
Foundation
Typography
Navigation
Feedback
Forms
Filter menu allows user to filter the data in a table or a list.
Root-level component for adding a menu.
All menu-related components must be children of FilterMenu.
| Name | Default | Description |
|---|---|---|
children | — | ReactNodeMenu button and list. |
Button for opening a menu.
| Name | Default | Description |
|---|---|---|
children | — | stringButton text. If `icon` is provided, it's not rendered and used as an `aria-label` instead. |
size | "md" | "sm" | "md" | "lg"Determines the height of the button. |
Icon-only button for opening a menu.
| Name | Default | Description |
|---|---|---|
aria-label | — | stringButton text for screen readers. |
icon | — | ComponentType<SVGAttributes<SVGElement>>Icon to render inside of a button. |
size | "md" | "sm" | "md" | "lg"Determines the height of the button. |
Wrapper for groups.
| Name | Default | Description |
|---|---|---|
children | — | ReactNodeGroups. |
Grouping of options.
Type: ReactNode
Options.
Type: string
Group title displayed above options.
Type: "radio" | "checkbox"
Selection type.
Use radio to allow a single option to be selected.
Use checkbox to allow multiple options to be selected.
Type: string | string[]
Selection.
When type is "radio", value is always a string.
When type is "checkbox", value is always an array of strings.
Type: ((value: string) => void) | (value: string[]) => void)
Callback for when user selects a single or multiple options, depending on the type prop.
When type is "radio", value is always a string.
When type is "checkbox", value is always an array of strings.
| Name | Default | Description |
|---|---|---|
isDisabled | — | booleanDetermines if option is disabled. |
children | — | ReactNodeOption text. |
value | — | stringOption value. Used to identify this option in a selection. |