Skip to content

Button

An element that can trigger an action
import { Button } from '@ensdomains/thorin'
<Button>Connect Wallet</Button>

Props
#

name
type
default
description
ref
null | string | (instance: HTMLButtonElement | null) => void | RefObject<HTMLButtonElement>
-
Allows getting a ref to the component instance. Once the component unmounts, React will set `ref.current` to `null` (or call the ref with `null` if you passed a callback ref). @see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}

States
#

Sizes
#

Color Style
#

States

Primary

Secondary

Gradient

Loading
#

The loading icon will replace either the prefix or suffix in that order. If no prefix or suffix is set it will inject itself into the prefix

Count
#

Shapes
#

Link
#

Width
#

Edit on GitHub