• Home
  • Getting started
  • Way of thinking
  • Foundation
  • Components
    • Accordion
    • Badge
    • Brands
    • Bottom sheet
    • Button
    • Button Group
    • Card
    • Checkbox
    • Date Picker
    • Dialog
    • Dialog - contextual
    • Dots
    • Drawer
    • Dropdown
    • Icon Button
    • Input fields
    • Items menu
    • List Group
    • Loader
    • Media Object
    • Navigation Indicator
    • Progress
    • Radio Button Group
    • Radio pill
    • Ribbon
    • Sausage
    • Select
    • Speech bubble
    • Step Indicator
    • Table
    • Toast
  • Patterns
  • Content
  • Brands

Components

Drawer

Hero Image

Display content that opens from the left or right side of the screen..

Code

import { Drawer } from 'trinidad-ui';

// Default
<Drawer position="right" isOpen onDimmerClick={callback function}>
  {/* Drawer content */}
</Drawer>

// Dimmer disabled
<Drawer position="right" isOpen isDimmerDisabled onDimmerClick={callback function}>
  {/* Drawer content */}
</Drawer>

// Auto fold drawer on small and medium screens
<Drawer autoFold position="right" isOpen isDimmerDisabled onDimmerClick={callback function}>
  {/* Drawer content */}
</Drawer>

Properties

Prop nameTypeDefault valueDescription
isDimmerDisabledboolfalseIf dimmer should be present.
isOpenboolfalseOpen or closed dimmer.
positionstringleftPosition of drawer, left or right.
childrennodeContent.
classNamestringAdd custom class.
onDimmerClickedfuncCallback when dimmer is clicked.

Accessibility

This component has been validated to meet the WCAG 2.1 AA accessibility guidelines.

Read more about WCAG 2.1 AA.

© DesignTech - AB Svenska Spel

What's newTerms of useAccessibility statementCookiesTeams channel [Internal]Powered by Trinidad-UI: 9.7.6

Feedback

We always want to improve the Design System and would be thrilled to get your feedback.

Please share your wisdom with us.

Microsoft Teams [internal]

Designsystem@svenskaspel.se