1.10.0 • Published 1 year ago

@nuwe/component-library v1.10.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year 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

1 year ago

1.9.0

1 year ago

1.7.1

1 year ago

1.10.0

1 year ago

1.7.0

1 year ago

1.6.7

1 year ago

1.6.6

1 year ago

1.6.5

1 year ago

1.6.4

1 year ago

1.6.3

1 year ago

1.6.2

1 year ago

1.6.1

1 year ago

1.6.0

1 year ago

1.5.28

1 year ago

1.5.27

1 year ago

1.5.26

1 year ago

1.5.25

1 year ago

1.5.24

1 year ago

1.5.23

1 year ago

1.5.22

1 year ago

1.5.21

1 year ago

1.5.20

1 year ago

1.5.19

1 year ago

1.5.18

1 year ago

1.5.17

1 year ago

1.5.16

1 year ago

1.5.15

1 year ago

1.5.14

1 year ago

1.5.13

1 year ago

1.5.12

1 year ago

1.5.11

1 year ago

1.5.10

1 year ago

1.5.9

1 year ago

1.5.8

1 year ago

1.5.7

1 year ago

1.5.6

1 year ago

1.5.5

1 year ago

1.5.4

1 year ago

1.5.3

1 year ago

1.5.2

1 year ago

1.5.1

1 year ago

1.5.0

1 year ago

1.4.8

1 year ago

1.4.7

1 year ago

1.4.6

1 year ago

1.4.5

1 year ago

1.4.4

1 year ago

1.4.3

1 year ago

1.4.2

1 year ago

1.4.1

1 year ago

1.4.0

1 year ago

1.3.0

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago