Skip to content

Commit f0dd312

Browse files
fix: πŸ› assign a default value
Assigned a default value to SidebarWrapper open prop
1 parent 8d8a76b commit f0dd312

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

β€ŽREADME.mdβ€Ž

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,13 @@ This npm module utilizes `react-pose` for animations.
1818

1919
## Basic usage
2020

21-
Please visit This [Repo](https://github.com/samAbeywickrama/roc-examples) or [Examples](https://github.com/samAbeywickrama/react-offcanvas-component/tree/master/examples/cra) folder for example usage.
21+
Please visit this [Repo](https://github.com/samAbeywickrama/roc-examples) for examples.
22+
23+
## API
24+
25+
| Prop | Type | Default | Required | Description |
26+
| ------------ | -------- | ------- | -------- | ----------------------------------- |
27+
| wrapperClass | `String` | none | no | className name for wrapper element. |
2228

2329
#### Todo:
2430

β€Žsrc/components/SidebarWrapper/SidebarWrapper.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const SidebarWrapperPanel = posed.section({
2121

2222
function SidebarWrapper({
2323
children,
24-
open,
24+
open = false,
2525
className,
2626
style,
2727
openAnimation,

0 commit comments

Comments
Β (0)