# @dreamtec-ui/button

> Buttons are used as triggers for actions.

Latest version **1.0.0-rc.1** (published 2020-11-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @dreamtec-ui/button
pnpm add @dreamtec-ui/button
yarn add @dreamtec-ui/button
bun add @dreamtec-ui/button
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0-rc.1 |
| Published | 2020-11-09 |
| First published | 2020-11-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 13.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Luis Tupa |
| Maintainers | ltsfran |

## Links

- npm: https://www.npmjs.com/package/@dreamtec-ui/button
- Repository: https://github.com/ltsfran/dreamtec-ui
- Homepage: https://github.com/ltsfran/dreamtec-ui/tree/master/packages/Button#readme
- Issues: https://github.com/ltsfran/dreamtec-ui/issues
- npm.io page: https://npm.io/package/@dreamtec-ui/button

## Recent versions

- 1.0.0-rc.1 (latest) — 2020-11-09
- 1.0.0-beta.1 — 2020-11-09
- 1.0.0-alpha.8 — 2020-11-03
- 1.0.0-alpha.7 — 2020-11-03
- 1.0.0-alpha.6 — 2020-11-03
- 1.0.0-alpha.5 — 2020-11-03
- 1.0.0-alpha.3 — 2020-11-03

## README

# @dreamtec-ui/button

Buttons are used as triggers for actions.

## Installation

```sh
yarn add @dreamtec-ui/button
```

## Import component

```jsx
import { Button } from "@dreamtec-ui/button"
```

## Usage

```jsx
<Button>Default</Button>
```

## Variants

Set variants using ***variant*** prop.

```jsx
<Button>Default</Button>
<Button variant="primary">Primary</Button>
<Button variant="secondary">Secondary</Button>
<Button variant="success">Success</Button>
<Button variant="danger">Danger</Button>
<Button variant="warning">Warning</Button>
```

## Loading

To indicate a button is loading, use the ***isLoading*** prop.

```jsx
<Button isLoading>Default</Button>
```

## Disabled

To indicate a button is disabled, use the ***isDisabled*** prop.

```jsx
<Button isDisabled>Default</Button>
```

## Size

Set sizes using ***size*** prop.

```jsx
<Button size="small">Small</Button>
<Button size="normal">Normal</Button>
<Button size="medium">Medium</Button>
<Button size="large">Large</Button>
```

## Display

To take full width of the parent element, use ***fullWidth*** prop.

```jsx
<Button fullWidth size="small">Small</Button>
```

## Custom width

Custom button width, use ***width*** prop.

```jsx
<Button width={400}>Normal 400</Button>
```

---
_Source: https://npm.io/package/@dreamtec-ui/button · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
