1.31.3 • Published 1 year ago

@bcgov-sso/common-react-components v1.31.3

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
1 year ago

SSO React Components

Lifecycle:Stable

This library contains common react components shared by the SSO CSS app and realm registry. See the github pages link for a storybook instance of components.

Workflow

Storybook: This repository has branched-based deployments for the storybook instance. To update storybook, merge in a feature branch to the main branch.

NPM: Components will be published to NPM when creating a new release. To release the components:

  1. Merge your feature branch into main. This will automatically bump the package version based on the commits and generate a tag for the release.
  2. Create a new release using the generated tag.

Adding Components

To add a component:

  1. Add a new folder with the component title to src/components
  2. Add a <componentName>.tsx file and index.ts file to the folder.
  3. Export your component from index.ts, e.g: export { default } from './NumberedContents';
  4. Add component export to src/components/index.ts, e.g:
export { default as Accordion } from './Accordion';
export { default as NumberedContents } from './NumberedContents';

Adding Stories

Add a <Component>.stories.jsx file to the stories folder

1.31.3

1 year ago

1.31.1

1 year ago

1.30.2

1 year ago

1.31.2

1 year ago

1.30.3

1 year ago

1.31.0

1 year ago

1.29.0

2 years ago

1.30.1

2 years ago

1.28.5

2 years ago

1.28.6

2 years ago

1.28.4

2 years ago

1.21.0

3 years ago

1.22.0

3 years ago

1.20.2

3 years ago

1.20.6

3 years ago

1.28.1

3 years ago

1.28.2

3 years ago

1.20.7

3 years ago

1.28.0

3 years ago

1.28.3

3 years ago

1.19.0

3 years ago

1.18.1

3 years ago

1.18.4

3 years ago

1.18.3

3 years ago

1.18.2

3 years ago

1.18.0

4 years ago

1.17.0

4 years ago

1.16.0

4 years ago

1.15.0

4 years ago

1.7.0

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago