Emry UI React button component
npm install @emryui/react-button
Supercharge your frontend development
A highly configurable React button component. Includes stunning default styles or style it to suit your own design system.
``sh`
$ yarn add @emryui/react-buttonor
$ npm install @emryui/react-button
If you want to use the default styles (e.g. colors), you also need to install the @emryui/presets package:
`sh`
$ yarn add @emryui/presetsor
$ npm install @emryui/presets
`js`
module.exports = {
presets: [
require("@emryui/presets"),
// ...other presets
],
content: ["./node_modules/@emryui/react-button/*/.{js,ts,jsx,tsx,mdx}"],
// ...other Tailwind CSS configuration
};
Import the Button component and use it in your React application
`
import { Button } from "@emryui/react-button";
// Example usage:
`
| Prop | Type | Options |
| ---------------- | --------------------------- | --------------------------------------------------------------------------------------------- |
| size | ButtonSize | sm, md, lg, xl, 2xl |true
| children | ReactNode | N/A |
| disabled | boolean | , false |submit
| type | string | , reset, button |primary
| variant | ButtonVariant | , secondary, secondary color, tertiary, tertiary color, link, link color |fast
| addClassNames | string | N/A |
| removeClassNames | string | N/A |
| className | string | N/A |
| transition | ButtonTransitionSpeed | , subtle, slow, none |true
| destructive | boolean | , false |true
| dot | boolean | , false |true
| as | keyof JSX.IntrinsicElements | N/A |
| headless | boolean | , false |true
| icon | boolean | , false` |