Skip to Content
Notion UI

Input

A text input with an optional clear button.

Input Default

<Input className="w-80" />

Installation

pnpm add @notion-kit/ui

Examples


Without Border

Input Flat

<Input variant="flat" className="w-80" placeholder="Enter something..." />

Search Input

Input Search

<Input
  className="w-80"
  value={value}
  onChange={(e) => setValue(e.target.value)}
  onCancel={() => setValue("")}
  placeholder="Enter something..."
  search
  clear
/>

API Reference

Input

Input accepts HTML <input> props and the props below.

Prop

Type

On this page