Installations
npm install @britannica/ui
Developer Guide
Typescript
No
Module System
CommonJS, UMD
Node Version
20.16.0
NPM Version
10.8.1
Score
57.4
Supply Chain
83.1
Quality
89.7
Maintenance
100
Vulnerability
99.6
License
Releases
Unable to fetch releases
Total Downloads
Cumulative downloads
Total Downloads
68,832
Last day
33.3%
12
Compared to previous day
Last week
-41.9%
125
Compared to previous week
Last month
-27.3%
660
Compared to previous month
Last year
-42%
13,137
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
2
Peer Dependencies
3
Dev Dependencies
65
Optional Dependencies
1
@britannica/ui
Consumer style system and React component library
Storybook: https://britannica.github.io/consumer-ui
Installation and Basic Usage
npm install @britannica/ui
Include the CSS
Via JavaScript:
1// Your app's main application file. e.g. index.js or App.js 2import '@britannica/ui/dist/britannica-ui.css';
Via CSS:
1@import '~@britannica/ui/dist/britannica-ui.css';
Via HTML:
1<!-- You can specify a specific version --> 2<link href="https://unpkg.com/@britannica/ui@0.2.5/dist/britannica-ui.css" rel="stylesheet" /> 3 4<!-- Or if you always want the latest --> 5<link href="https://unpkg.com/@britannica/ui@latest/dist/britannica-ui.css" rel="stylesheet" />
Note: More documentation is on the way, but for now we recommend looking at a couple different places for relevant style information:
Import a component
1import { Button } from '@britannica/ui'; 2 3const MyComponent = () => <Button label="Enable Bat-Signal">Enable Bat-Signal</Button>;
Note: More documentation is on the way, but for now we recommend looking at the propTypes
within each of the components to see which components exist as well as which props they accept.
testing
No vulnerabilities found.
No security vulnerabilities found.