@manuscripts/style-guide
v2.0.23
Published
Shared components for Manuscripts applications
Downloads
2,101
Readme
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
.