0.0.3 • Published 3 years ago

@stackpath/cosmos-react-components v0.0.3

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

Cosmos React Components

Note: This project is pre-alpha and should not be used in a production environment.

Cosmos is the name of StackPath's Design System.

This package is a set of React wrapper components around the Cosmos Web Components package.

Installation

To install the React component bindings:

npm install @stackpath/cosmos-react-components

Usage

The package will automatically define the underlying Custom Elements in your project, so you don't need to do it manually.

Import a component:

import { CosmosButton } from '@stackpath/cosmos-react-components/dist'

Use the component in your JSX:

<main>
    <CosmosButton type='primary' label='Primary Button' icon='check' onClick={(event) => console.log('Clicked primary button')} />
</main>
0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago