0.1.4 • Published 12 months ago

react-dynamic-width-divs v0.1.4

Weekly downloads
-
License
-
Repository
-
Last release
12 months ago

npm i react-dynamic-width-divs

Go to the component you want to add your Dynamic Width Div Container

import {Container} from 'react-dynamic-width-divs/dist'; //at the top

call

<Container total={1000} items={[100,200]} labelLinesVisible={false} />

props ->

total

total width

items

type array -> array of values you want [tip-> inner div width = itemsi/totol * 100 %]

containerStyles

styles for outer most container type object

innerContainerStyles

styles for inner container type object

labelLinesVisible

label lines visible true/false

labelLinesContainer

styles for main label container type object

innerLabelLinesContainer

styles for inner label container type object

hrStyles

styles for label lines type object

labelStyles

styles for label type object