Skip to content

Volst/ui-components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Oct 12, 2018
245fe6e Β· Oct 12, 2018
Aug 27, 2018
Mar 4, 2018
Mar 4, 2018
Feb 12, 2018
Oct 12, 2018
Aug 27, 2018
Dec 27, 2017
Oct 12, 2018
May 1, 2018
Sep 7, 2018
Oct 12, 2018
May 29, 2018
Oct 12, 2018
Oct 12, 2018
May 29, 2018
Mar 23, 2018
Feb 4, 2018
Oct 3, 2018

Repository files navigation

Volst UI Components

A React component library for Volst.

Demo / overview of all components

Install

yarn add @volst/ui-components
npm i @volst/ui-components --save

Usage

The components are documented in the demo, in the top-right you can press "Show Info" to see all the possible props for that component.

An example:

import React from 'react';
import ReactDOM from 'react-dom';
import { VolstTheme, Button } from '@volst/ui-components';

ReactDOM.render(
    <VolstTheme>
        <Button>Foobar</Button>
    </VolstTheme>,
    document.getElementById('root')
);

<VolstTheme /> accepts a theme prop, which can be used to change some project-wide settings. An example:

const theme = {
    primaryColor: '#006b94',
};

<VolstTheme theme={theme} />

See all settings.

Contributing

Please read the contributing guide.

Inspiration