Updated UI Component

This commit is contained in:
Tola Leng
2025-05-23 20:37:59 +08:00
parent 1e8962cb11
commit 09ce22b4fb
3 changed files with 7 additions and 4 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
import * as React from "react"
import * as PopoverPrimitive from "@radix-ui/react-popover"
@@ -26,4 +27,4 @@ const PopoverContent = React.forwardRef<
))
PopoverContent.displayName = PopoverPrimitive.Content.displayName
export { Popover, PopoverTrigger, PopoverContent }
export { Popover, PopoverTrigger, PopoverContent }
+2 -1
View File
@@ -1,3 +1,4 @@
import * as React from "react"
import * as SeparatorPrimitive from "@radix-ui/react-separator"
@@ -26,4 +27,4 @@ const Separator = React.forwardRef<
)
Separator.displayName = SeparatorPrimitive.Root.displayName
export { Separator }
export { Separator }
+3 -2
View File
@@ -1,3 +1,4 @@
import * as React from "react"
import { cn } from "@/lib/utils"
@@ -10,7 +11,7 @@ const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
return (
<textarea
className={cn(
"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",
"flex min-h-20 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",
className
)}
ref={ref}
@@ -21,4 +22,4 @@ const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
)
Textarea.displayName = "Textarea"
export { Textarea }
export { Textarea }