Skip to content

Commit bc19bae

Browse files
committed
fix: switch size typing
1 parent 56ce7df commit bc19bae

File tree

1 file changed

+6
-4
lines changed
  • src/components/primitives/Switch

1 file changed

+6
-4
lines changed

src/components/primitives/Switch/types.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import type { SwitchProps } from 'react-native';
2-
3-
import type { CustomProps, ResponsiveValue } from '../../../components/types';
4-
import type { ISizes } from '../../../theme/base/sizes';
2+
import type {
3+
CustomProps,
4+
ThemeComponentSizeType,
5+
ResponsiveValue,
6+
} from '../../../components/types';
57
import type { IColors } from '../../../theme/base/colors';
68
import type { InterfaceBoxProps } from '../Box';
79

@@ -12,7 +14,7 @@ export interface InterfaceSwitchProps
1214
* The size (width and height) of the switch.
1315
* @default md
1416
*/
15-
size?: ResponsiveValue<ISizes | (string & {}) | number>;
17+
size?: ThemeComponentSizeType<'Switch'>;
1618
/**
1719
* If true, set the disabled to the invalid state.
1820
*/

0 commit comments

Comments
 (0)