1.0.8 • Published 4 years ago

@now-ui/bar v1.0.8

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

@now-ui/bar

Description

The Bar component provides a bar that can be used to display stats

Installation

npm install @now-ui/bar --save

Props

ArgumentTypeRequiredDefaultExample
widthoneOf(string , number)noN/A'24px'
heightoneOf(string , number)noN/A'24px'
backgroundColorstringnoN/A'#eee'
fillColorstringnoN/A'#eee'
fillHeightoneOf(string , number)noN/A'24px'
titleAboveoneOf(node,string)noN/A<h6>title</h6>
titleBelowoneOf(node,string)noN/A<h6>title</h6>
barBorderRadiusstringnoN/A'2px'
fillBorderRadiusstringnoN/A'2px'

Usage

import Bar from '@now-ui/bar';

const Component = () => (
  <Bar
    width="42px"
    height="150px"
    backgroundColor="#8C4C44"
    fillColor="#D2634C"
    fillHeight="20%"
    titleAbove="27.5%"
    titleBelow="18-24"
    barBorderRadius="2px"
    fillBorderRadius="2px"
  />
);
1.0.8

4 years ago

1.0.7

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago