@manuscripts/style-guide
TypeScript icon, indicating that this package has built-in type declarations

1.8.4-LEAN-3514.2 • Public • Published

Manuscripts Style Guide

React components for Manuscripts applications.

Example usage

import { PrimaryButton } from '@manuscripts/style-guide'

const Example: React.FunctionComponent<{
  handleClick: React.MouseEventHandler<HTMLButtonElement>
}> = ({ handleClick }) => (
  <div>
    <PrimaryButton onClick={handleClick}>Done</PrimaryButton>
  </div>
)

Development

Run yarn build to build the dist folder for distribution.

Run yarn dev to automatically rebuild when a file is changed.

If a component needs new theme properties, add the types to src/theme.ts and add the corresponding values to .storybook/theme.ts.

Readme

Keywords

Package Sidebar

Install

npm i @manuscripts/style-guide

Weekly Downloads

593

Version

1.8.4-LEAN-3514.2

License

Apache-2.0

Unpacked Size

920 kB

Total Files

411

Last publish

Collaborators

  • maci