New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@emryui/react-button

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@emryui/react-button

Emry UI React button component

latest
Source
npmnpm
Version
0.2.8-alpha
Version published
Maintainers
1
Created
Source
Logo

Emry UI - React Button

Supercharge your frontend development

Installation

A highly configurable React button component. Includes stunning default styles or style it to suit your own design system.

$ yarn add @emryui/react-button
# or
$ 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:

$ yarn add @emryui/presets
# or
$ npm install @emryui/presets

tailwind.config.js

module.exports = {
  presets: [
    require("@emryui/presets"),
    // ...other presets
  ],
  content: ["./node_modules/@emryui/react-button/**/*.{js,ts,jsx,tsx,mdx}"],
  // ...other Tailwind CSS configuration
};

Usage

Import the Button component and use it in your React application

import { Button } from "@emryui/react-button";

// Example usage:
<Button size="md" variant="primary" onClick={handleClick}>
  Click me
</Button>

Props

PropTypeOptions
sizeButtonSizesm, md, lg, xl, 2xl
childrenReactNodeN/A
disabledbooleantrue, false
typestringsubmit, reset, button
variantButtonVariantprimary, secondary, secondary color, tertiary, tertiary color, link, link color
addClassNamesstringN/A
removeClassNamesstringN/A
classNamestringN/A
transitionButtonTransitionSpeedfast, subtle, slow, none
destructivebooleantrue, false
dotbooleantrue, false
askeyof JSX.IntrinsicElementsN/A
headlessbooleantrue, false
iconbooleantrue, false

Keywords

Emry UI

FAQs

Package last updated on 06 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts