Last modified: 4/Oct/2024
BottomSheet
BottomSheet is capable of listing any DOM element on temporary surfaces.
#Usage
import { BottomSheet } from '@kinsta/stratus'
const MyComponent = () => {
const [visible, setVisible] = useState()
return (
<BottomSheet isVisible={visible}>
Simple BottomSheet
</BottomSheet>
)
}
#Props
Used to show the content of the BottomSheet
If the bottomSheet is visible.
#handleClose
() => void
callback when the bottomSheet is closed
#Types
BottomSheetProps
: props of theBottomSheet
component processed by stratus
Read more about types here