Skip to content

Commit

Permalink
Omit selection props from AriaToggleButtonGroupItemProps
Browse files Browse the repository at this point in the history
  • Loading branch information
devongovett committed Nov 6, 2024
1 parent 515b83d commit e70f360
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@react-types/button/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ interface AriaBaseButtonProps extends FocusableDOMProps, AriaLabelingProps {

export interface AriaButtonProps<T extends ElementType = 'button'> extends ButtonProps, LinkButtonProps<T>, AriaBaseButtonProps {}
export interface AriaToggleButtonProps<T extends ElementType = 'button'> extends ToggleButtonProps, AriaBaseButtonProps, AriaButtonElementTypeProps<T> {}
export interface AriaToggleButtonGroupItemProps<E extends ElementType = 'button'> extends Omit<AriaToggleButtonProps<E>, 'id'> {
export interface AriaToggleButtonGroupItemProps<E extends ElementType = 'button'> extends Omit<AriaToggleButtonProps<E>, 'id' | 'isSelected' | 'defaultSelected' | 'onChange'> {
/** An identifier for the item in the `selectedKeys` of a ToggleButtonGroup. */
id: Key
}
Expand Down

0 comments on commit e70f360

Please sign in to comment.