Skip to content

Commit 23baa80

Browse files
committed
fix: icon button platform types
1 parent 6b3063c commit 23baa80

File tree

1 file changed

+7
-3
lines changed
  • src/components/composites/IconButton

1 file changed

+7
-3
lines changed

src/components/composites/IconButton/types.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
import type { InterfacePressableProps } from '../../primitives/Pressable/types';
22
import type { IIconProps } from '../../primitives/Icon';
3-
import type { ColorSchemeType } from '../../../components/types';
3+
import type { ColorSchemeType, PlatformProps } from '../../../components/types';
44

55
import type { CustomProps, VariantType } from '../../types';
66
import type { ThemeComponentSizeType } from '../../../components/types/utils';
77
export interface InterfaceIconButtonProps
8-
extends Omit<InterfacePressableProps, 'children' | 'color'>,
8+
extends Omit<
9+
InterfacePressableProps,
10+
'children' | 'color' | '_light' | '_dark' | '_web' | '_android' | '_ios'
11+
>,
912
Omit<
1013
IIconProps,
1114
| 'delayLongPress'
@@ -22,7 +25,8 @@ export interface InterfaceIconButtonProps
2225
| '_web'
2326
| '_android'
2427
| '_ios'
25-
> {
28+
>,
29+
PlatformProps<IIconButtonProps> {
2630
/**
2731
* The color of the radio when it's checked. This should be one of the color keys in the theme (e.g."green", "red").
2832
* @default 'primary'

0 commit comments

Comments
 (0)