2.0.0 • Published 1 year ago

@vcnkit/core v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

VCNKit/Core

Core UI components for VCNKit.

Installation

NPM

npm install @vcnkit/core

Yarn

yarn add @vcnkit/core

Usage

ThemeProvider

import { ThemeProvider } from '@vcnkit/core';

const App = () => (
    <ThemeProvider
        theme={ themeOverrides }
    >
        <YourApp />
    </ThemeProvider>
);

Button

import * as Button from '@vcnkit/core/Button';

const Component = () => (
    <Button.Primary
        onClick={ handleClick }
    >
        Save
    </Button.Primary>
);

ActionBar

import ActionBar from '@vcnkit/core/ActionBar';
import * as Button from '@vcnkit/core/Button';

const Component = () => (
    <ActionBar>
        <Button.Primary>Button 1</Button.Primary>
        <Button.Primary>Button 2</Button.Primary>
    </ActionBar>
);

Icons

import { Info, Flask } from '@vcnkit/core/Icons';

const Component = () => (
    <>
        <Info />
        <Flash />
    </>
);

MessageBar

import * as MessageBar from '@vcnkit/core/MessageBar';

const Component = () => (
    <MessageBar.Info>
        You are now using the MessageBar component.
    </MessageBar.Info>
);

Storybook

yarn install && yarn storybook

License

This library is licensed under the terms of the MIT license.

Google Material Design Icons - Apache License Version 2.0

Material Design Community Icons - SIL Open Font License 1.1

Twemoji - CC-BY 4.0

2.0.0

1 year ago

1.3.0

4 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago

1.0.0-alpha.1

5 years ago