Requirement
Web Minimum Requirement
| Requirement | |
|---|---|
| Node | v22.11.0 |
Installation
To manually set up Biofarma UI in your project, follow the steps below.
Register the Package (Web)
Add the following lines to your package.json file manually:
"dependencies": {
// other dependencies
"bio-bind-ui": "",
"bind-ui-icon": "" // required for icon dependencies
}Build the Project
To build the project, use one of the following commands:
Using npm:
npm installnpm run buildUsing yarn:
yarn installyarn run buildUse it!
start using the package in your project:
import { Accordion } from 'bio-bind-ui';<Accordion
items={[
{
title: 'Title',
content: 'Content',
},
]}
style={{}}
mode='light'
id='accordion'
variant='none'
expandedIndexes=[]
onExpandedIndexes={(expandedIndexes: number[]) => }
/>