Dynamic Sheet
Last updated: 3.0.0 (04/07/2024)
Last updated
Was this helpful?
Last updated: 3.0.0 (04/07/2024)
Last updated
Was this helpful?
In Valence 3, this component now imports from @valence-ui/core
.
The Dynamic Sheet is a powerful responsive component that can be used to choose the best sheet for the context. It can be used to switch between the and as required, utilizing ideal UI patterns for the breakpoint on which your app is running.
By default, the Dynamic Sheet will be an inline Side Sheet, then change to an overlay Side Sheet on "tablet"
breakpoints and a Bottom Sheet on "mobile"
breakpoints. This behavior can be overridden with the type
prop.
children (required)
ReactNode
disclosure (required)
A disclosure to handle the sheet's state.
title (required)
string
The title of the sheet.
type
DynamicSheetType
The type of the sheet.
sideSheetProps
Optional props to apply to the Side Sheet component, when displayed.
bottomSheetProps
Optional props to apply to the Bottom Sheet component, when displayed.
3.3.0: now imports from @valence-ui/core
.