SideSheet
The SideSheet component is used to render a sidesheet above an overlay. This can be used to prompt the user with some
extra information about something the user clicked
Usage#
Position#
The position of the SideSheet component is also customizable by using the position prop, it accepts two values
"right""left"
Header#
The SideSheet component can also be rendered with a header by providing header prop, which accepts a string
input.
Adjustable Width#
The width of the sheet can also be adjusted by changing the value of width prop, it accepts number values.
In the below example the width is 700 which means the side sheet width is 700px
API#
| Prop | Type | Possible values | Default Value |
|---|---|---|---|
| position | string | "left" and "right" | "right" |
| header | string | Any string value | -- |
| width | number | Any number value | 500 |
| showClose | boolean | true and false | false |
| open | boolean | true and false | false |
| onClose | ()=>void | -- | -- |
Built by Akshay 🤙