ArrowButton

On hover the arrow exits right as a second one enters from the left, and the chip swells. Buttons.

Open playground

About

ArrowButton is a React component in the Buttons category of smoui. It is typed, ships no stylesheet, follows your theme through CSS variables, and honors prefers-reduced-motion. Import it with import { ArrowButton } from "@ashutoshswamy/smoui" and set children, onClick.

Install

Terminal
npm i @ashutoshswamy/smoui

Usage

TSX
import { ArrowButton } from "@ashutoshswamy/smoui";

<ArrowButton onClick={go}>View components</ArrowButton>

Props 2

children

Label.

ReactNode
onClick

Click handler.

() => void