INS Components
This is a component library for all INS React projects. It should simplify our frontend development and make our applications look more or less the same.
Available Components
The following components will be available in a first version of this project:
Elements
- Button
- ButtonGroup
- Input (with validator)
- Select
Collections
- Navigation
- Dropdown
Modules
- Popup
- Header
Installation and Usage
Install the components with npm i ins-components
. Use them within your project like this:
import { Button } from "ins-components";
export const Login = () => <Button label="Login" />;
Development
Start the Storybook Locally
npm start
Lint and Test
npm run lint
and npm run test
Build Storybook Locally
npm run build-storybook
Release
To release a new version of this library, follow these steps:
- Commit everything and push it
-
npm version patch
or another appropriate semver command npm run build-components
npm publish