@teste-ui/close-button
TypeScript icon, indicating that this package has built-in type declarations

2.0.4 • Public • Published

Close Button

CloseButton is essentially a button with a close icon. It is used to handle the close functionality in feedback and overlay components like Alerts, Toasts, Drawers and Modals.

Installation

yarn add @teste-ui/close-button

# or

npm i @teste-ui/close-button

Import component

import { CloseButton } from "@teste-ui/close-button"

Usage

<CloseButton />

Disabled

Pass the isDisabled prop to put the close button component in a disabled state.

<CloseButton isDisabled />

Sizes

Pass the size prop to adjust the size of the close button. Values can be sm, md or lg.

<>
  <CloseButton size="sm" />
  <CloseButton size="md" />
  <CloseButton size="lg" />
</>

Package Sidebar

Install

npm i @teste-ui/close-button

Weekly Downloads

0

Version

2.0.4

License

MIT

Unpacked Size

31.9 kB

Total Files

12

Last publish

Collaborators

  • benits