Skip to content

Commit

Permalink
feat(types): remove restrictions to components, classNames prop types (
Browse files Browse the repository at this point in the history
  • Loading branch information
gpbl committed Sep 14, 2024
1 parent f4bbb32 commit 4514720
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/components/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,8 @@ export type DropdownOption = {
*/
export function Dropdown(
props: {
components: Pick<CustomComponents, "Select" | "Option" | "Chevron">;
classNames: Pick<
ClassNames,
| UI.DropdownRoot
| UI.Dropdown
| UI.MonthsDropdown
| UI.YearsDropdown
| UI.CaptionLabel
| UI.Chevron
>;
components: CustomComponents;
classNames: ClassNames;
options?: DropdownOption[] | undefined;
} & Omit<JSX.IntrinsicElements["select"], "children">
) {
Expand Down

0 comments on commit 4514720

Please sign in to comment.