SubComponents

Content

The content subcomponent controls the structure rendered inside the Drawer. This subcomponent extends the native <div>arrow-up-right API.

Content API

Props
Type
Required

children

ReactNode

βœ…

hasPadding

boolean

❌

chevron-rightchildrenhashtag

The inner structure of the Drawer component.

chevron-righthasPaddinghashtag

Adds or removes a default padding on the card of the modal

The footer subcomponent can be used to render actions or extra actions below the content.

The content subcomponent controls the structure rendered below the Drawer, as a Footer. This component extends the native <div>arrow-up-rightAPI.

Props
Type
Required

children

ReactNode

βœ…

The Header subcomponent can be used to render a header on the Drawer component.

Header API

The header subcomponent controls the structure rendered over the Drawer. This component extends the native <div>arrow-up-right API.

children

string

βœ…

closeButtonPosition

'left' | 'right'

❌

closeButtonIcon

❌

hideCloseButton

boolean

❌

chevron-rightcloseButtonPositionhashtag

To choose the render position of the closing button.

chevron-rightcloseButtonIconhashtag

To choose a custom close icon.

chevron-righthideCloseButtonhashtag

To show/hide the close button.

Last updated