Button

A button allows a user to perform an action, with mouse, touch, and keyboard interactions.

Installation

pnpm add @notion-kit/ui

Options


Variant

Use the variant prop to control the visual style of the button.
The default variant is "primary".

Size

Use the size prop to control the size of the button.

Examples


Hint

Warning

Icon Button

Disabled

API Reference

Button

An Button extends the HTML <button> component. We list the extended properties only.

PropTypeDefaultDescription
variant"primary" | "icon" | "link | "blue" | "soft-blue" | "hint" | "red" | "red-fill" | "white" | "close" | null"primary"The visual style of the button.
size"xs" | "sm" | "md" | "lg" | "circle" | nullnullThe size of the button.