Skip to content

Commit 1879713

Browse files
chore(eui): improve EuiCallout size prop type (#8917)
1 parent 9301680 commit 1879713

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/eui/src/components/call_out/call_out.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ export const COLORS = [
3232
export type Color = (typeof COLORS)[number];
3333

3434
export const HEADINGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p'] as const;
35-
type Heading = (typeof HEADINGS)[number];
35+
export type Heading = (typeof HEADINGS)[number];
3636

37-
type Size = 's' | 'm';
37+
export const SIZES = ['s', 'm'] as const;
38+
export type Size = (typeof SIZES)[number];
3839

3940
export type EuiCallOutProps = CommonProps &
4041
Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'color'> & {

0 commit comments

Comments
 (0)