ggg-components-library
v1.0.7
Published
A React component library
Downloads
8
Readme
gg-components-library
gg-components-library is a component library for React, developed with the goal of providing reusable and styled components for React projects. This library uses Storybook to visualize and test components in isolation.
Scripts available
- build**: Compiles the components for production.
- storybook: Starts the Storybook server for viewing and testing components.
- build_storybook**: Compile the production version of Storybook.
- lint**: Run ESLint on the source code.
- lint:fix: Runs ESLint and automatically fixes problems encountered.
- prettier**: Verify code formatting with Prettier.
- prettier:fix: Automatically fixes formatting problems with Prettier.
Usage
To use gg-components-library in your project:
- Install the library:
yarn add gg-components-library
or
npm install gg-components-library
- Import the component you want to use:
import { Button } from 'gg-components-library'
function MyComponent() {
return <Button>Mi botón</Button>
}