• Start
  • Blogg
  • Kom igång
  • Riktlinjer
  • Komponenter
  • Changelog
  • Tillgänglighet
  • Inställningar

Komponenter

Komponenter

​
​

Inga resultat hittade, prova med andra sökvillkor.

Side Sheet

Side Sheet

5.0.35

Side sheets are surfaces containing supplementary content that are anchored to the right edge of the screen.

Demo
Props
Installation
Länkar
Tillgänglighet
Change log
Statistik

Demo

Props

Se fullständing dokumentation(öppnas i ny flik)
NamnTypBeskrivning

AppBarProps

AppBarPropsObject to set props for the app bar.

anchor

"left" | "right"Side from which the drawer will appear.

ariaLabel *

stringA screen reader label for the dialog container. Should often be the same as the visible heading

children *

React.ReactNodeThe content that should be rendered inside the side sheet.

disableFocusHeading

booleanIf true, the Sidesheet will not automatically focus the first heading.

hasAppBar

booleanHide App Bar in Side Sheet

onClose *

() => voidFunction that handles closing the side sheet. Usually a function that sets open = false.

open *

booleanBoolean indicating if the side sheet is open. Default is false.

paperSx

SxProps<Theme>The system prop that allows additional CSS styles to paper.

ref

React.Ref<HTMLDivElement>Ref to the side sheet

sx

SxProps<Theme>The system prop that allows defining system overrides as well as additional CSS styles.

type

SideSheetTypeSets whether the sheet should be rendered as a modal with scrim, or inline.

customWidth

never | string | undefinedCustom width.

size

"extraSmall" | "small" | "wide" | undefinedSets the width of the side sheet. Small is 360px, large is 480px.

Installation

Kodexempel
npm install @sj-ab/component-library.ui.side-sheet

Länkar

  • Storybook

  • Figma

  • Bit.cloud

Tillgänglighet

Se tillgänglighetsdokumentationen för Sheet

Change log

  • Security updates and bit automatic vulnerabilites workflow fix

    5.0.23
  • Migrate to ESLint 9

    5.0.11

Statistik

  • Importer av Side Sheet

    16
  • Repos med Side Sheet

    31%
  • Senaste installerade version av Side Sheet

    4.1.11
  • Äldsta installerade version av Side Sheet