diff --git a/code/ui/blocks/src/components/Typeset.tsx b/code/ui/blocks/src/components/Typeset.tsx index 8fbfca58b56..76b70c99885 100644 --- a/code/ui/blocks/src/components/Typeset.tsx +++ b/code/ui/blocks/src/components/Typeset.tsx @@ -35,7 +35,7 @@ const Wrapper = styled.div(withReset, ({ theme }) => ({ export interface TypesetProps { fontFamily?: string; - fontSizes: string[]; + fontSizes: (string | number)[]; fontWeight?: number; sampleText?: string; } diff --git a/docs/api/doc-block-typeset.md b/docs/api/doc-block-typeset.md index 22933dc5f52..047657cd89f 100644 --- a/docs/api/doc-block-typeset.md +++ b/docs/api/doc-block-typeset.md @@ -84,7 +84,7 @@ Provides a font family to be displayed. ### `fontSizes` -Type: `number[]` +Type: `(string | number)[]` Provides a list of available font sizes (in `px`).