https://dev.kronoz.win/r/marzneshin.git
| 1 |
3b7feef |
Mrdn |
2y ago |
import * as React from "react" |
| 2 |
3b7feef |
Mrdn |
2y ago |
|
| 3 |
d636f3f |
Dawsh |
2y ago |
import { cn } from "@marzneshin/common/utils" |
| 4 |
3b7feef |
Mrdn |
2y ago |
|
| 5 |
3b7feef |
Mrdn |
2y ago |
export interface TextareaProps |
| 6 |
d636f3f |
Dawsh |
2y ago |
extends React.TextareaHTMLAttributes<HTMLTextAreaElement> { } |
| 7 |
3b7feef |
Mrdn |
2y ago |
|
| 8 |
3b7feef |
Mrdn |
2y ago |
const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>( |
| 9 |
d636f3f |
Dawsh |
2y ago |
({ className, ...props }, ref) => { |
| 10 |
d636f3f |
Dawsh |
2y ago |
return ( |
| 11 |
d636f3f |
Dawsh |
2y ago |
<textarea |
| 12 |
d636f3f |
Dawsh |
2y ago |
className={cn( |
| 13 |
d636f3f |
Dawsh |
2y ago |
"flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", |
| 14 |
d636f3f |
Dawsh |
2y ago |
className |
| 15 |
d636f3f |
Dawsh |
2y ago |
)} |
| 16 |
d636f3f |
Dawsh |
2y ago |
ref={ref} |
| 17 |
d636f3f |
Dawsh |
2y ago |
{...props} |
| 18 |
d636f3f |
Dawsh |
2y ago |
/> |
| 19 |
d636f3f |
Dawsh |
2y ago |
) |
| 20 |
d636f3f |
Dawsh |
2y ago |
} |
| 21 |
3b7feef |
Mrdn |
2y ago |
) |
| 22 |
3b7feef |
Mrdn |
2y ago |
Textarea.displayName = "Textarea" |
| 23 |
3b7feef |
Mrdn |
2y ago |
|
| 24 |
3b7feef |
Mrdn |
2y ago |
export { Textarea } |