Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions registry/winlab/ui/select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@ function SelectTrigger({
{...props}
>
{children}
<SelectPrimitive.Icon
render={<ChevronDownIcon className="text-muted-foreground" />}
/>
{/* Icon's default content is the text "▼"; passing the svg as children
replaces it, while render would keep "▼" inside the svg and in the
trigger's text. */}
<SelectPrimitive.Icon className="flex text-muted-foreground">
<ChevronDownIcon />
</SelectPrimitive.Icon>
</SelectPrimitive.Trigger>
)
}
Expand Down
Loading