fiber-ui
TypeScript icon, indicating that this package has built-in type declarations

1.0.24 • Public • Published

🧸 FiberUI

An opinionated React UI Component library

NPM JavaScript Style Guide

Install

Install Peer Dependancies

yarn add react react-dom styled-components styled-system styled-normalize react-icons

Load the Works Sans font:

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.

Install package

yarn add fiber-ui

Usage

Wrap your React project with our UIProvider.

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')
)

Development

# install dependencies
yarn

# run demo at root directory
yarn start

Create a component

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

License

MIT © bottable

Readme

Keywords

none

Package Sidebar

Install

npm i fiber-ui

Weekly Downloads

1

Version

1.0.24

License

MIT

Unpacked Size

1.66 MB

Total Files

133

Last publish

Collaborators

  • ian13456
  • balta-z-r
  • alanwu4321