@acodez/accordian 中文文档教程

发布于 3年前 浏览 18 更新于 3年前

@acodez/accordian

npm_version license



Installation

npm install @acodez/accordian

Props API

PropertyTypeRequiredDefault valueDescription
titlestringyesaccordian heading
namestringyesaccordian unique name
openstringnoaccordian open or not , value true or false
handleAccordianstringyesfunction return clicked accordian name,value
messagestringnoaccordian message displayed side to title

Usage

import Accordian  from '@acodez/accordian';
import '@acodez/accordian/dist/index.css';


<Accordian title="item1" name="item1" open={true} onClick={handleAccordian} message="Lorem"> Lorem ipsum, or lipsum as it is sometimes known, is dummy text used in laying out print, graphic or web designs. The passage is attributed to an unknown typesetter in the 15th century who is thought to have scrambled parts of Cicero's De Finibus Bonorum et Malorum for use in a type specimen book. </Accordian>

 const handleAccordian=({name,value})=>{   }

@acodez/accordian

npm_version license



Installation

npm install @acodez/accordian

Props API

PropertyTypeRequiredDefault valueDescription
titlestringyesaccordian heading
namestringyesaccordian unique name
openstringnoaccordian open or not , value true or false
handleAccordianstringyesfunction return clicked accordian name,value
messagestringnoaccordian message displayed side to title

Usage

import Accordian  from '@acodez/accordian';
import '@acodez/accordian/dist/index.css';


<Accordian title="item1" name="item1" open={true} onClick={handleAccordian} message="Lorem"> Lorem ipsum, or lipsum as it is sometimes known, is dummy text used in laying out print, graphic or web designs. The passage is attributed to an unknown typesetter in the 15th century who is thought to have scrambled parts of Cicero's De Finibus Bonorum et Malorum for use in a type specimen book. </Accordian>

 const handleAccordian=({name,value})=>{   }
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文