Panel

Panel consisting of buttons that can activate different modes of a page or component.

Import

JSX

Usage

JSX

Variants

Secondary

JSX

Disabled

JSX

Props

Panel

PropTypeDefaultDescription
initialMode*string-id of mode which should be active on first render
styling"primary" | "secondary"-style type of the mode buttons
children*ReactNode-Expecting <Panel.Mode>

Panel.Mode

PropTypeDefaultDescription
id*string-id of the mode
handleClickany -onClick handler for the mode button
ariaLabelstring -Label for the mode's purpose to aid screen readers
disabled boolean-disables the mode button from activaation
children*ReactNode-Expecting a string or component(s)
*: mandatory props