Textarea
octane/textareaFreeComponent
octane publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by octane on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://raw.githubusercontent.com/octanejs/octane/main/packages/shadcn/registry/textarea.jsonSource
1// Base UI base textarea — a plain host `<textarea>`. Base UI ships no textarea primitive (its2// Input is a native `<input>` via Field.Control), so unlike the React Aria base there is no3// `TextArea` component to compose and this matches the Radix base's plain-host shape.4//5// UNVERIFIED PROVENANCE: class string taken from this package's React Aria base rather than6// transcribed from upstream's Base UI source.7//8// Octane divergence (shadcn-native-input-events): per-keystroke handling is the native `onInput` event, not a synthetic9// `onChange`; native `change` keeps its commit-on-blur meaning.10import { cn } from '@/lib/utils';11import type { HostProps } from '@/lib/types';1213export function Textarea({ className, ...props }: HostProps<'textarea'>) @{14 <textarea15 data-slot="textarea"16 className={cn(17 'flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40',18 className,19 )}20 {...props}21 />22}
What it pulls in
Other registry items
Files it writes
More from octane
All 44 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | octane | Components | Free | 2 deps | |
| Alertalert | octane | Components | Free | 1 dep | |
| Alert Dialogalert-dialog | octane | Components | Free | 1 dep | |
| Aspect Ratioaspect-ratio | octane | Components | Free | no deps | |
| Avataravatar | octane | Components | Free | 1 dep | |
| Badgebadge | octane | Components | Free | 1 dep | |
| Breadcrumbbreadcrumb | octane | Components | Free | 1 dep | |
| Buttonbutton | octane | Components | Free | 2 deps |
