29 lines
649 B
TypeScript
29 lines
649 B
TypeScript
"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 }
|