1.2.2 • Published 1 year ago

@architecturex/components.button v1.2.2

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

@architecturex/components.button

Button

A flexible and customizable button component for React applications built with Tailwind CSS.

Installation

npm install @architecturex/components.button

Features

  • Supports various color schemes.
  • Three size options: small, medium, and large.
  • Variants: contained, outlined, and text.
  • Shapes: regular, rounded, circle, and square.
  • Supports both buttons and links.
  • Loading and disabled states.

Usage

import Button from '@architecturex/components.button'

function App() {
  return (
    <Button color="primary" size="medium" variant="contained">
      Click me!
    </Button>
  )
}

Props

  • color: Sets the color scheme of the button. (default: 'primary')
  • size: Determines the size of the button. (default: 'medium')
  • variant: Sets the button style. (default: 'contained')
  • shape: Defines the shape of the button. (default: 'regular')
  • href: If provided, the button will be rendered as a link.
  • target: Set the target attribute for the link button.
  • fullWidth: If true, the button will take up the full width of its container.
  • disabled: If true, the button will be disabled.
  • isLoading: If true, the button will show a loading state.
  • loadingText: Text to show during the loading state.

Contribution

Feel free to suggest improvements, report issues, or contribute to enhancing these utilities. Your feedback and contributions are welcome!

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.22

2 years ago

1.1.21

2 years ago

1.1.20

2 years ago

1.1.19

2 years ago

1.1.18

2 years ago

1.1.17

2 years ago

1.1.16

2 years ago

1.1.15

2 years ago

1.1.14

2 years ago

1.1.13

2 years ago

1.1.12

2 years ago

1.1.11

2 years ago

1.1.10

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago