An opinionated React UI Component library
yarn add react react-dom styled-components styled-system styled-normalize react-icons
Add this to your HTML head
<link
href="https://fonts.googleapis.com/css2?family=Work+Sans&display=swap"
rel="stylesheet"
/>
or download typeface-work-sans
and type require('typeface-work-sans')
in your project's entry file.
yarn add fiber-ui
example:
import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
import { UIProvider } from 'fiber-ui'
ReactDOM.render(
<React.StrictMode>
<UIProvider>
<App />
</UIProvider>
</React.StrictMode>,
document.getElementById('root')
)
# install dependencies
yarn
# run demo at root directory
yarn start
yarn hygen fiber new
> What's your new member called?
> codegen_sample
> What's your category does it belong ex. component, layout ...etc?
> example
> What's your base HTML element?
> h2
Loaded templates: _templates
added: src/CodegenSample/index.ts
inject: src/index.tsx
added: docs/sample/codegenSample.mdx
added: src/CodegenSample/__test__/CodegenSample.spec.tsx
added: src/CodegenSample/CodegenSample.tsx
added: src/CodegenSample/styles.ts
✨ Done in 10.06s.
Be sure to run
yarn test -u
after to create a new snapshot
MIT © bottable