@nilfoundation/ui-kit v2.5.11
UI components library to build React applications using =nil;
pre-designed styles out of the box.
Table of contents
Getting started
npm
npm install @nilfoundation/ui-kit baseui styletron-engine-atomic styletron-react
yarn
yarn add @nilfoundation/ui-kit baseui styletron-engine-atomic styletron-react
CDN
<script src="https://unpkg.com/@nilfoundation/ui-kit/dist/ui-kit.iife.js"></script>
Notice, that global React
variable should be accessible, because it is not included in the standalone bundle.
Usage
import { BaseProvider } from "baseui";
import { Client as Styletron } from "styletron-engine-atomic";
import { Provider as StyletronProvider } from "styletron-react";
import { createTheme, Button } from "@nilfoundation/ui-kit";
const engine = new Styletron();
const { theme } = createTheme(engine);
function App() {
return (
<StyletronProvider value={engine}>
<BaseProvider theme={theme}>
<Button>Button Label</Button>
</BaseProvider>
</StyletronProvider>
);
}
SSR
Use this workaround to make Styletron, which this package is levelraging, work with SSR.
License
5 days ago
5 days ago
6 days ago
6 days ago
6 days ago
6 days ago
11 days ago
19 days ago
29 days ago
29 days ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
2 months ago
2 months ago
2 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
5 months ago
5 months ago
5 months ago
5 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
10 months ago
10 months ago
10 months ago
11 months ago
11 months ago
11 months ago