Text content children
Optional
CloseIf this prop is provided, a Close button will be rendered with the specified props.
Optional
ariaOptional
customUsed for tests. Clickable and requested subcomponents will be suffixed with "-[ComponentName]".
Optional
customOptional override of default translations
Optional
lang?: "en" | "sv"Language used for internal translations.
Optional
onAn option to provide an onClick handler to make the component behave as a button. If both RouterLink and onClick listener are present, the RouterLink is preferred
Optional
RouterAn option to provide a valid router link element to make the component linked. Use for example NavLink from "react-router-dom" or equivalent from another routing library. If both RouterLink and onClick listener are present, the RouterLink is preferred
The background color variant of the component