Base Web

A React Component library implementing the Base design language

README

Base Web React Components

Build status

Base is a design system comprised of modern, responsive, living components. Base Web is the React implementation of Base.


Usage


On npm, you can find Base Web as baseui.

Add baseui and its peer dependencies to your project:

  1. ``` sh
  2. # using yarn
  3. yarn add baseui styletron-react styletron-engine-monolithic

  4. # using npm
  5. npm install baseui styletron-react styletron-engine-monolithic
  6. ```

  1. ``` js
  2. import {Client as Styletron} from 'styletron-engine-monolithic';
  3. import {Provider as StyletronProvider} from 'styletron-react';
  4. import {LightTheme, BaseProvider, styled} from 'baseui';
  5. import {StatefulInput} from 'baseui/input';

  6. const engine = new Styletron();

  7. const Centered = styled('div', {
  8.   display: 'flex',
  9.   justifyContent: 'center',
  10.   alignItems: 'center',
  11.   height: '100%',
  12. });

  13. export default function Hello () {
  14.   return (
  15.     <StyletronProvider value={engine}>
  16.       <BaseProvider theme={LightTheme}>
  17.         <Centered>
  18.           <StatefulInput />
  19.         </Centered>
  20.       </BaseProvider>
  21.     </StyletronProvider>
  22.   );
  23. }
  24. ```

Both Base Web and Styletron come with flow types and TypeScript. All our components are typed and examples have Vanilla, Flow and TypeScript versions.

Docs


To read the documentation, please visit baseweb.design.

Contributing



Shoutouts 🙏


BrowserStack Logo

Big thanks to BrowserStack for letting the maintainers use their service to debug browser issues.