Skip to content

Commit

Permalink
chore(ui): update intrinsic types
Browse files Browse the repository at this point in the history
  • Loading branch information
guoda-puidokaite committed Dec 3, 2024
1 parent 9a7d273 commit 27557f8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ type ButtonVariant = "primary" | "primary-danger" | "default" | "subdued"
type ButtonSize = "small" | "default"

export interface ButtonProps
extends Omit<React.HTMLProps<HTMLAnchorElement> & React.HTMLProps<HTMLButtonElement>, "size"> {
extends Omit<React.HTMLProps<HTMLAnchorElement> | React.HTMLProps<HTMLButtonElement>, "size"> {
children?: React.ReactNode
/** Choose a variant for your purpose. May leave empty to get default button. */
variant?: ButtonVariant
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ export const Icon = forwardRef<HTMLAnchorElement | HTMLButtonElement, IconProps>
Icon.displayName = "IconTs"

export interface IconProps
extends Omit<React.HTMLProps<HTMLAnchorElement> & React.HTMLProps<HTMLButtonElement>, "size"> {
extends Omit<React.HTMLProps<HTMLAnchorElement> | React.HTMLProps<HTMLButtonElement>, "size"> {
icon?: KnownIcons
color?: string
size?: string | number
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ export interface TabListProps extends ReactTabListProps {
/** Pick the TabList style */
variant?: TabsVariant
/** The individual child Tabs to render */
children?: (React.ReactElement<TabProps> & React.ReactElement<TabProps>[]) | null
children?: (React.ReactElement<TabProps> | React.ReactElement<TabProps>[]) | null
}

0 comments on commit 27557f8

Please sign in to comment.