Dropdown

Clickable button that renders a popup containing a list of available actions.

Import

JSX

Usage

JSX

Variants

Dangerous items

JSX

Icons

JSX

Orientation

JSX

Alignment

JSX

Props

Dropdown

PropTypeDefaultDescription
orientation"top" | "bottom""bottom"Position of actions list relative to the toggle button
alignment"left" | "right""left"Alignment of actions list relative to the toggle button
children*ReactNode-Expecting <Dropdown.Header> followed by <Dropdown.List>

Dropdown.Header

PropTypeDefaultDescription
children*string | JSX.Element-Inner text of the button or a custom component inside the button
borderRadiusstring"0.5rem"Border radius of the toggle button

Dropdown.List

PropTypeDefaultDescription
children*ReactNode-Expecting a list of <Dropdown.Item>

Dropdown.Item

PropTypeDefaultDescription
onClick() => void-Callback function of the respective action
isDangerousbooleanfalseHints if an action is dangerous
children*string | JSX.Element-Inner text of the action button
*: mandatory props