@@ -10,10 +10,10 @@ Custom component for rendering collapse panel.
1010<img src =" /images/docs/collapse/1.gif " class =" mobile " style =" height : 600px ; width : auto ;" />
1111
1212``` jsx
13- import { Collapse , CollapseBody , CollapseHeader } from " react-native-magnus" ;
13+ import { Collapse } from " react-native-magnus" ;
1414
1515< Collapse>
16- < CollapseHeader
16+ < Collapse . Header
1717 active
1818 color= " gray900"
1919 fontSize= " md"
@@ -22,14 +22,14 @@ import { Collapse, CollapseBody, CollapseHeader } from "react-native-magnus";
2222 prefix= {< Icon name= " wallet" mr= " md" color= " gray400" / > }
2323 >
2424 Header 1
25- < / CollapseHeader >
26- < CollapseBody pb= " xl" >
25+ < / Collapse . Header >
26+ < Collapse . Body pb= " xl" >
2727 < Text >
2828 Lorem ipsum dolor sit amet consectetur adipisicing elit . Minus nobis
2929 corporis ut, ex sed aperiam . Debitis , facere! Animi quis laudantium, odio
3030 nulla recusandae labore pariatur in , vitae corporis delectus repellendus.
3131 < / Text >
32- < / CollapseBody >
32+ < / Collapse . Body >
3333< / Collapse> ;
3434```
3535
@@ -45,15 +45,15 @@ Collapse is basically a `Div` component. So it accepts all props of `Div` with t
4545| ------------- | ------------------------------------------------- | --------- | ------- |
4646| defaultActive | shows the collapse as opened when true by default | ` boolean ` | ` false ` |
4747
48- ### CollapseHeader
48+ ### Collapse.Header
4949
50- CollapseHeader is basically a ` Button ` component. So it accepts all props of ` Button ` with the following extra props
50+ Collapse.Header is basically a ` Button ` component. So it accepts all props of ` Button ` with the following extra props
5151
5252| Property | Description | Type | Default |
5353| ------------ | ------------------------------------------------------ | ----------- | ------- |
5454| activeSuffix | Renders a component on the right of button when active | ` ReactNode ` | ` - ` |
5555| activePrefix | Renders a component on the left of button when active | ` ReactNode ` | ` - ` |
5656
57- ### CollapseBody
57+ ### Collapse.Body
5858
5959CollapseHeader is basically a ` Div ` component. So it accepts all props of ` Div `
0 commit comments