A customizable component library
npm install nsc-component-librarybash
npm install nsc-component-library
`
Usage
After installation, you can import and use the components in your React application:
`jsx
import React from 'react';
import { Button, Input } from 'nsc-component-library';
const MyComponent = () => (
);
export default MyComponent;
`
Make sure to import the component library's CSS in your project:
`jsx
import 'nsc-component-library/dist/index.css';
`
Available Components
The library includes the following components:
- Accordion
- Alert
- Badge
- Breadcrumbs
- Button
- Card
- Checkbox
- Dropdown
- Input
- Modal
- Pagination
- Radio
- Select
- Tabs
- TextArea
- Toggle
- ToolTip
Each component comes with various props for customization. Refer to the component's documentation or TypeScript definitions for detailed usage instructions.
Theming
The library supports theming. You can switch between themes by applying the appropriate CSS class to a parent element.
Development
To run the Storybook development environment:
`bash
npm run storybook
`
To build the library:
`bash
npm run build
``