This package has been deprecated

Author message:

Will be re-published as '@dan-nz/storybook-documentation-primitives'

@dan-nz/documentation-primitives

0.1.3 • Public • Published

documentation-primitives

NPM semantic-release

Installation

npm i @dan-nz/documentation-primitives prop-types react react-dom

Usage in Storybook documentation-only page (MDX)

import { Meta, Story, Preview } from '@storybook/addon-docs/blocks';
import { Swatch, SwatchContainer } from '@dan-nz/documentation-primitives';

<Meta title="Color" />

# Color

<SwatchContainer title="Orange">
  <Swatch name="Orange 500" value="#ff9800" />
  <Swatch name="Orange 600" value="#fb8c00" />
  <Swatch name="Orange 700" value="#f57c00" />
  <Swatch name="Orange 800" value="#ef6c00" />
  <Swatch name="Orange 900" value="#e65100" />
</SwatchContainer>

Demo

Running demos locally

npm run storybook:start

Components

Color Swatches

🔜

Package Sidebar

Install

npm i @dan-nz/documentation-primitives

Weekly Downloads

0

Version

0.1.3

License

MIT

Unpacked Size

2.32 MB

Total Files

8

Last publish

Collaborators

  • dan_logins
  • gmlnchv
  • glenndwright