1.10.0 • Published 2 years ago

@nuwe/component-library v1.10.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Nuwe component library - v2

Rebuilding Nuwe's material-based component system (IN PROGRESS)

Table of Contents

Installation

In the host project:

npm i @nuwe/component-library

You will also need the following peer dependencies installed in the host project:

"react"
"react-dom"
"@mui/material"

Deploying with Vercel

Directives for building new components (in progress)

  • Avoid exporting styled-components directly unless it's really necessary.
  • Never export styled component css snippets.
  • Annotate the component props with relevant info to help understand how to use them.
  • Export theme as a variable with a list of constants.
  • Write unit tests for complex components. Visually check everything else in Storybook.
  • Add stories for components as they would appear in the app. This should go in a [component].stories.tsx file.
  • Add documentation for the component to explain its usage. This should go in a [component].stories.mdx file.
  • Use storybook parameters to set up common background colours/layouts where a component could be used.
  • Use storybook controls to allow for users to test the props variant where possible.

Usage

import { NavBar } from "@nuwe/component-library";

Installation

Storybook

To get going with Storybook:

npm run storybook

This should create a local server (usually on localhost:6006) with the interface. The environment makes use of hot reloading, so there is no need to refresh your browser as you build.

Publishing

Follow the instructions outlined here

1.8.0

2 years ago

1.9.0

2 years ago

1.7.1

2 years ago

1.10.0

2 years ago

1.7.0

2 years ago

1.6.7

2 years ago

1.6.6

2 years ago

1.6.5

2 years ago

1.6.4

2 years ago

1.6.3

2 years ago

1.6.2

2 years ago

1.6.1

2 years ago

1.6.0

2 years ago

1.5.28

2 years ago

1.5.27

2 years ago

1.5.26

2 years ago

1.5.25

2 years ago

1.5.24

2 years ago

1.5.23

2 years ago

1.5.22

2 years ago

1.5.21

2 years ago

1.5.20

2 years ago

1.5.19

2 years ago

1.5.18

2 years ago

1.5.17

2 years ago

1.5.16

2 years ago

1.5.15

2 years ago

1.5.14

2 years ago

1.5.13

2 years ago

1.5.12

2 years ago

1.5.11

2 years ago

1.5.10

2 years ago

1.5.9

2 years ago

1.5.8

2 years ago

1.5.7

2 years ago

1.5.6

2 years ago

1.5.5

2 years ago

1.5.4

2 years ago

1.5.3

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.8

2 years ago

1.4.7

2 years ago

1.4.6

2 years ago

1.4.5

2 years ago

1.4.4

2 years ago

1.4.3

2 years ago

1.4.2

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago