Input

Displays a form input field or a component that looks like an input field.

Installation

pnpm add @notion-kit/ui

Examples


Without Border

Search Input

API Reference

Input

An Input extends the HTML <input> component. We list the extended properties only.

PropTypeDefaultDescription
variant"default" | "plain" | "flat""default"The visual style of the input.
searchboolean-Whether the search icon is shown.
clearboolean-Whether the clear button is shown.
endIconReact.ReactNode-An icon at the end of the input.
onCancel() => void-Handler that is called when the clear button is clicked.