R 8R 12
4
896 × 54
ComposeUI
ComponentsChartsBlocksDocs

Let's have coffee?

R 16
Subham avatar
Want to work together? Just want to chat?
Subham avatar
Check out my portfolio: subham12r.dev
Subham avatar
Or grab 15 mins on my calendar:
Coffee chat
Portfoliosubham12r.dev
Mail
hello@subham12r.dev
Socials
X / Twitter·GitHub·LinkedIn
Explore
Components·Charts·Blocks·Docs

Designed and built by Subham

ComposeUIComposeUI
© 2026 ComposeUI·React + Tailwind v4
⌘K

Input

Fill
Stroke
Color

Input

Inputs

Recessed bevel search and command input with inline tactile keycap shortcut hint.

"use client"; import { useState } from "react";import { CommandInput } from "@/components/compose/input"; export function SearchField() {  const [query, setQuery] = useState("");  return <CommandInput value={query} onChange={setQuery} shortcut="⌘K" />;}

Install

Add it with the ComposeUI CLI, or copy the source manually.

$ bunx --bun compose-ui-cli add input

API Reference

Prop
Type
Default
value
string

Current controlled input value.

—
shortcut
string

Keycap badge displayed on the trailing edge when empty.

"⌘K"
placeholder
string

Muted helper prompt when no query is entered.

"Search primitives..."

Related components

#
R 12
opacity64%
Slider
R 12
Type to search sources & files
Prompt Bar
R 12
clicks: 0
Button

Updated December 2026

R 12
Previous

Segmented

R 12
Next

Slider