0.2.3-alpha.52 • Published 2 years ago

@gemeente-denhaag/drawer v0.2.3-alpha.52

Weekly downloads
-
License
EUPL-1.2
Repository
github
Last release
2 years ago

Drawer

A drawer is a large container that enters from the edge of the screen when triggered by the user. It’s used to provide users with actions and information contextual to the page.

When to use

The sheet display content that complements the screen’s primary content. They remain visible while users interact with primary content. For that reason it is best used in cases where the user needs to see elements behind it. It is used to display a list of actions that affect the screen’s primary content, such as filters or to display supplemental content and features. On mobile they can display the same types of content as the sheets on larger screens, but must be dismissed in order to interact with the underlying content.

Alternatives and related components

Use modals to offer an action before users can go to the next step in the flow

Anatomy

The drawer consists of:

  1. Title (optional): gives users a quick overview of the drawer.
  2. Close icon: closes the drawer.
  3. Overlay: screen overlay that obscures the on-page content.

(Interactive) states

None.

Design properties

Typography

  • Title: TheMix/lg/700

Colors

  • Title: text color Blue/3
  • Close icon: svg color Grey/4
  • Overlay: background-color white

Structure

  • Title: padding-top and padding-left 32px, margin-bottom 16px
  • Close icon: height and width 24px, padding-top and padding-right 32px

Accessibility

technical requirements

Content guidelines

None.

Best practices

Dos

The drawer should:

  • Be openable through clear actions, like a link or button
  • Be close-able through clear actions, like the X button, and the esc key
  • Include information and actions contextual to the current task
  • Not block users from completing their task, like a modal would
  • Not open from within another sheet (only one sheet can be open at a time)
  • Preserve its state—the settings and actions won’t reset when it’s closed

Don’ts

The drawer should:

  • Not show the elements behind it

References

https://material.io/components/navigation-drawer#anatomy

0.2.3-alpha.52

2 years ago

0.2.3-alpha.51

2 years ago

0.2.3-alpha.50

2 years ago

0.2.3-alpha.43

3 years ago

0.2.3-alpha.42

3 years ago

0.2.3-alpha.41

3 years ago

0.2.3-alpha.47

2 years ago

0.2.3-alpha.46

2 years ago

0.2.3-alpha.45

2 years ago

0.2.3-alpha.44

2 years ago

0.2.3-alpha.49

2 years ago

0.2.3-alpha.48

2 years ago

0.2.3-alpha.40

3 years ago

0.2.3-alpha.36

3 years ago

0.2.3-alpha.39

3 years ago

0.2.3-alpha.38

3 years ago

0.2.3-alpha.37

3 years ago

0.2.3-alpha.35

3 years ago

0.2.3-alpha.34

3 years ago

0.2.3-alpha.33

3 years ago

0.2.3-alpha.32

3 years ago

0.2.3-alpha.31

3 years ago

0.2.3-alpha.30

3 years ago

0.2.3-alpha.29

3 years ago

0.2.3-alpha.28

3 years ago

0.2.3-alpha.27

3 years ago

0.2.3-alpha.25

3 years ago

0.2.3-alpha.26

3 years ago

0.2.3-alpha.24

3 years ago

0.2.3-alpha.23

3 years ago

0.2.3-alpha.22

3 years ago

0.2.3-alpha.21

3 years ago

0.2.3-alpha.20

3 years ago

0.2.3-alpha.19

3 years ago

0.2.3-alpha.18

3 years ago

0.2.3-alpha.17

3 years ago

0.2.3-alpha.16

3 years ago

0.2.3-alpha.15

3 years ago

0.2.3-alpha.14

3 years ago

0.2.3-alpha.13

3 years ago

0.2.3-alpha.12

3 years ago

0.2.3-alpha.11

3 years ago

0.2.3-alpha.10

3 years ago

0.2.3-alpha.9

3 years ago

0.2.3-alpha.8

3 years ago

0.2.3-alpha.7

3 years ago

0.2.3-alpha.6

3 years ago

0.2.3-alpha.5

3 years ago

0.2.3-alpha.4

3 years ago

0.2.3-alpha.3

3 years ago

0.2.3-alpha.2

3 years ago

0.2.1

3 years ago

0.2.2

3 years ago

0.2.0

3 years ago

0.1.7

3 years ago