Modal
Installation
Section titled “Installation”npm install @sk-web-gui/reactAnvändning
Section titled “Användning”import { Modal } from '@sk-web-gui/react';| Prop | Typ | Standard | Beskrivning |
|---|---|---|---|
show | boolean | – | |
label | string | React.JSX.Element | – | |
closeLabel | string | – | |
className | string | – | |
onClose | () => void | – | |
hideClosebutton | boolean | – | |
closeButtonProps | React.ComponentProps<typeof Button> | – | |
children | React.ReactNode | – | |
disableCloseOutside | boolean | – | |
as | React.ElementType | – | @default article |
labelAs | React.ElementType | – | |
hideLabel | boolean | – | |
aria-label | string | – | |
overlayTransitionProps | React.ComponentPropsWithRef<typeof TransitionChild> | – | |
contentTransitionProps | React.ComponentPropsWithRef<typeof TransitionChild> | – |
Standardargs (från Meta.args)
Section titled “Standardargs (från Meta.args)”{ "label": "Title"}Storyvarianter
Section titled “Storyvarianter”- Template – standardstory
- Implementation: @sk-web-gui/modal
- Storybook: Modal