# @hashicorp/react-button

> A clickable text box that allows a user to take an action.

Latest version **6.3.1** (published 2023-03-27) · MPL-2.0 license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @hashicorp/react-button
pnpm add @hashicorp/react-button
yarn add @hashicorp/react-button
bun add @hashicorp/react-button
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 6.3.1 |
| Published | 2023-03-27 |
| First published | 2019-09-04 |
| Weekly downloads | 0 |
| License | MPL-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 40 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 62 |
| Author | HashiCorp |
| Maintainers | alexju, consul-ui-services, wenincode-hashicorp, hashicb, britt.lindgren, paulhcp, nandereck, tstormk, hashibot-hds, lackeyjb1, alexcarpenter, youriwims, jpogran, ashleemboyer, _natmegs, thrashr888, amyrlam, melsumner, mwickett, didoo, zchsh, brandonromano, hcitsec, gregone, meirish, enmod, kylemac, kaxcode, anubhavmishra-hashicorp, hashibot-web, cstitt-hashi, bkalow, kstraut, mocohen, dhaulagiri |

## Links

- npm: https://www.npmjs.com/package/@hashicorp/react-button
- Repository: https://github.com/hashicorp/react-components
- Homepage: https://github.com/hashicorp/react-components#readme
- Issues: https://github.com/hashicorp/react-components/issues
- npm.io page: https://npm.io/package/@hashicorp/react-button

## Dependencies (4)

- [slugify](https://npm.io/package/slugify.md) ^1.6.5
- [classnames](https://npm.io/package/classnames.md) ^2.3.1
- [@hashicorp/react-inline-svg](https://npm.io/package/@hashicorp/react-inline-svg.md) ^6.0.3
- [@hashicorp/platform-product-meta](https://npm.io/package/@hashicorp/platform-product-meta.md) ^0.1.0

## Recent versions

- 6.3.1 (latest) — 2023-03-27
- 6.3.2-canary-20240110201519 (canary) — 2024-01-10
- 5.0.2-alpha.63 (next) — 2021-06-15
- 2.0.1-react-v2.0 (react-v2) — 2019-12-10
- 1.2.17-fonts.0 (fonts) — 2019-10-30
- 6.4.0-canary-20230505203832 — 2023-05-05
- 6.4.0-canary-20230505202927 — 2023-05-05
- 6.4.0-canary-20230505202350 — 2023-05-05
- 6.4.0-canary-20230505194434 — 2023-05-05
- 6.4.0-canary-20230505185900 — 2023-05-05
- 6.4.0-canary-20230505185850 — 2023-05-05
- 6.3.1-canary-20230225005502 — 2023-02-25
- 6.3.1-canary-20230225003839 — 2023-02-25
- 6.3.0 — 2022-11-14
- 6.3.0-canary-20221114184229 — 2022-11-14
- … 149 more at https://npm.io/package/@hashicorp/react-button/versions

## README

# Button

A clickable text box that allows a user to take an action.

### Props

See [the props file](props.js) for more details.

**Note**: this component also will reflect any additional props you pass it to the top level. However, passing such props is discouraged. If absolutely necessary, it's encouraged to document the use of those "additional" props so that they can be added to the component explicitly. This allows us to create a more transparent view of the component's functionality, and allows us to better support those additional props as we iterate on this component.

### Dependents

- `hashi-hero`
- `hashi-logo-grid`
- `hashi-newsletter-signup-form`

### Notes

Previously, this component accepted a `classes` prop, which would pass classNames to the component's root element. The `classes` prop is now deprecated, please use `className` instead, which serves the same purpose of passing additional classes to the `.g-btn` element.

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