Backdrop
component is useful for handling "click outsite to close" functionality for modals, sidebars etc.
When visible (visible={true}
) it renders as full viewport element with a semi-transparent background.
Backdrop
can also be rendered as a portal
to avoid issues with elements nesting.
Property | Type | Required | Default | Description |
---|---|---|---|---|
visible | boolean | 🗸 | false | if true backdrop is visible |
Backdrop
component accepts also all of the responsive, theme-based style props.