Beta

Search Documentation

Search through documentation pages

Components

Input

A styled input component built on Base UI with support for all native input types.

Preview

'use client';

import { Input } from '@/registry/san-francisco/ui/input';

export default function InputDemo() {
  return <Input className="w-full max-w-xs" placeholder="Enter text..." />;
}

Installation

bun
bunx shadcn@latest add @sft-ui/input

Types

'use client';

import { Input } from '@/registry/san-francisco/ui/input';

export default function InputDemoTypes() {
  return (
    <>
      <Input className="w-full max-w-xs" type="text" placeholder="Text" />
      <Input className="w-full max-w-xs" type="email" placeholder="Email" />
      <Input className="w-full max-w-xs" type="password" placeholder="Password" />
    </>
  );
}

States

'use client';

import { Input } from '@/registry/san-francisco/ui/input';

export default function InputDemoStates() {
  return (
    <>
      <Input className="w-full max-w-xs" placeholder="Placeholder" />
      <Input className="w-full max-w-xs" disabled placeholder="Disabled" />
      <Input className="w-full max-w-xs" aria-invalid placeholder="Invalid" />
    </>
  );
}

API Reference

See the Base UI Input documentation for the API reference.