Modal
Modal helps to focus the user’s attention on one task or piece of information via a window that sits on top of the page content.
- Storybook (opens in a new tab)
- Figma library (opens in a new tab)
- Figma spec (opens in a new tab)
npm install @sbks/ds-modal
Dimensions
Section titled “Dimensions”Modal’s default width is defined by design as 420px (increased by 30px). The height of the modal depends on the volume of content and it’s up to 80% of the viewport.
All elements, eg. buttons, inputs, selects, etc., in a modal are always in medium size.



Advanced modal header
Section titled “Advanced modal header”The header area always contains a title, and it can be supplemented by tabs, select, input, or another component.






Close button states
Section titled “Close button states”