Skip to content

Commit a1693a3

Browse files
committed
fix: passthrough Button props such as size
1 parent 36058ab commit a1693a3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/ui/combobox.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,9 @@ function ComboBoxButton(
149149
{
150150
children,
151151
className,
152+
variant,
152153
...props
153-
}: React.ComponentProps<"button">
154+
}: React.ComponentProps<typeof Button>
154155
) {
155156
const {placeholder, selectedOption} = useComboBox();
156157

@@ -170,7 +171,7 @@ function ComboBoxButton(
170171
return (
171172
<Button
172173
data-slot="combobox-button"
173-
variant="outline"
174+
variant={variant ?? "outline"}
174175
role="combobox"
175176
className={cn("justify-between w-full", !selectedOption && "text-muted-foreground", className)}
176177
{...props}

0 commit comments

Comments
 (0)