Components-Liverpool
===================
React with Webpack
Installation
npm install liverpool
It is also possible to install the dependencies locally (using yarn install
).
Usage
In a React app, use the Button or Badge components:
import { Button, Badge } from 'liverpool'
Button props
| Name | Description | | -------- | ----------- | --------- | -------- | ------- | ---------- | | kind | 'Primary' | 'Outline' | 'Inline' | 'Ghost' | ' Warning' | | data-id | string | | type | 'button' | 'submit' | 'reset' | | name | string | | value | string | | disabled | Boolean | | onClick | function |
Components settings
List of supported rules
💼 Configurations enabled in.
🚫 Configurations disabled in.
🏃 Set in the jsx-runtime
configuration.
☑️ Set in the recommended
configuration.
🔧 Automatically fixable by the --fix
CLI option.
💡 Manually fixable by editor suggestions.
❌ Deprecated.
Name | Description | 💼 | 🚫 | 🔧 | 💡 | ❌ |
---|---|---|---|---|---|---|
@auth0/auth0-react | Enforces consistent naming for boolean props | |||||
button-has-type | Disallow usage of button elements without an explicit type attribute |
Other useful plugins
- Rules of Hooks: eslint-plugin-react-hooks
- JSX accessibility: eslint-plugin-jsx-a11y
- React Native: eslint-plugin-react-native
License
liverpool
is licensed under the MIT License.