Skip to content

Commit 9b2e44b

Browse files
committed
fix: button size typing
1 parent 6f04057 commit 9b2e44b

File tree

1 file changed

+8
-2
lines changed
  • src/components/primitives/Button

1 file changed

+8
-2
lines changed

src/components/primitives/Button/types.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { ResponsiveValue } from '../../types';
44
import type { MutableRefObject } from 'react';
55
import type { ISizes } from '../../../theme/base/sizes';
66
import type {
7-
CombinedSizeType,
7+
ThemeComponentSizeType,
88
CustomProps,
99
VariantType,
1010
// VariantType,
@@ -62,7 +62,13 @@ export interface InterfaceButtonProps
6262
/**
6363
* The size of the button.
6464
*/
65-
size?: CombinedSizeType<'Button'>;
65+
size?:
66+
| 'xs'
67+
| 'sm'
68+
| 'md'
69+
| 'lg'
70+
| (string & {})
71+
| ThemeComponentSizeType<'Button'>;
6672
// size?: SizeType;
6773
/**
6874
* The start icon element to use in the button.

0 commit comments

Comments
 (0)