File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/components/primitives/Switch Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
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' ;
5
7
import type { IColors } from '../../../theme/base/colors' ;
6
8
import type { InterfaceBoxProps } from '../Box' ;
7
9
@@ -12,7 +14,7 @@ export interface InterfaceSwitchProps
12
14
* The size (width and height) of the switch.
13
15
* @default md
14
16
*/
15
- size ?: ResponsiveValue < ISizes | ( string & { } ) | number > ;
17
+ size ?: ThemeComponentSizeType < 'Switch' > ;
16
18
/**
17
19
* If true, set the disabled to the invalid state.
18
20
*/
You can’t perform that action at this time.
0 commit comments