Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@datalith/barcode

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@datalith/barcode

datalith barcode

  • 0.12.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@datalith/barcode

yarn add @datalith/barcode

Docs

<BarCode className="barcode" data={data} />
NameDefaultTypeDescription
classNamestringCustom css classes to apply to the SVG
styleReact.CSSPropertiesCustom style object to apply to the SVG
additionalElementsJSX.ElementOptional elements to add to the SVG
size{ width: number; height: number }Width and Height of the SVG. Default is parent node size.
data*Array<Datum> orArray<number>Array of data
value(Datum) => Datum(Datum) => number or numberValue accessor
valueInactive1numberValue Inactive accessor
fill(Datum) => string or stringFill color accessor
fillInactive#000stringFill Inactive accessor
fillOpacity(Datum) => number or numberFill Opacity accessor
fillOpacityInactive0.3numberFill Opacity Inactive accessor
fillInactive#000stringFill Inactive accessor
stroke(Datum) => string or stringStroke color accessor
strokeInactivetransparentstringStroke Inactive accessor
strokeOpacity(Datum) => number or numberStroke Opacity accessor
strokeOpacityInactive0.3numberStroke Opacity Inactive accessor
strokeInactivetransparentstringStroke Inactive accessor
barWidthnumberWidth of the bars
center{x: width / 2, y: height / 2}{x: number, y: number}Center of the dataviz
tooltip(Datum) => stringReturn HTML or text as a string to show on element mouseover

Keywords

FAQs

Package last updated on 09 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc