diff --git a/src/components/README.md b/src/components/README.md index 30027ca9..6f4c7ab7 100644 --- a/src/components/README.md +++ b/src/components/README.md @@ -24,3 +24,42 @@ function header = (props) => { ); } ``` +# Accordion + +### Props + + +| Name |Type | Default | Description | +| ------------- |:-------------:| --- | ---- | +| border|`bool`| false | Border of the Accordion | +| children | `Reactnode` | |Children to render inside Accordion| +| open|`bool`| false | Determines if the accordion is currently open or closed | +| title |`string`| | Title of the Accordion | + +``` +
+
{ + this.setState(() => ({ isVisible: !this.state.isVisible })); + }} + role="button" + tabIndex={0} + > + + + +    + {this.props.title} + +
+
+ {this.props.children} +
+
+``` \ No newline at end of file