Drawer
Importβ
import { Drawer } from '@resultadosdigitais/tangram-components'
Propertiesβ
aria-describedbyβ
| Type | string |
|---|
Descriptionβ
Gives the drawer an accessible name by referring to the element that provides the drawer title.
aria-labelledbyβ
| Type | string |
|---|
Descriptionβ
Gives the drawer an accessible description by referring to the drawer content that describes the primary message or purpose.
onCloseβ
anchorβ
sizeβ
openβ
scrimβ
| Type | bool |
|---|---|
| Default | false |
Descriptionβ
Modal navigation drawers use a scrim to block interaction with the rest of the app. The scrim is placed directly below the drawerβs sheet and can be tapped or clicked to dismiss the drawer.
<DrawerBody />β
Importβ
import { DrawerBody } from '@resultadosdigitais/tangram-components'
Propertiesβ
childrenβ
<DrawerHeader />β
Importβ
import { DrawerHeader } from '@resultadosdigitais/tangram-components'
Propertiesβ
onDismissβ
dismissibleβ
textβ
| Type | string | element |
|---|---|
| Default | undefined |
Descriptionβ
Displays the given text as a title.
You get the same result using DrawerTitle within children.
childrenβ
<DrawerTitle />β
Importβ
import { DrawerTitle } from '@resultadosdigitais/tangram-components'