snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
28
apps/v4/registry/bases/aria/ui/textarea.tsx
Normal file
28
apps/v4/registry/bases/aria/ui/textarea.tsx
Normal file
@@ -0,0 +1,28 @@
|
||||
"use client"
|
||||
|
||||
import * as React from "react"
|
||||
import { cn } from "cn"
|
||||
import {
|
||||
composeRenderProps,
|
||||
TextArea as TextareaPrimitive,
|
||||
} from "react-aria-components"
|
||||
|
||||
function Textarea({
|
||||
className,
|
||||
...props
|
||||
}: React.ComponentProps<typeof TextareaPrimitive>) {
|
||||
return (
|
||||
<TextareaPrimitive
|
||||
data-slot="textarea"
|
||||
className={composeRenderProps(className, (className) =>
|
||||
cn(
|
||||
"cn-textarea flex field-sizing-content min-h-16 w-full outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
||||
className
|
||||
)
|
||||
)}
|
||||
{...props}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
export { Textarea }
|
||||
Reference in New Issue
Block a user