Merge pull request #26475 from noranda/nb/fix-typeset-fontsizes-type

Docs: Fix `Typeset` Doc block `fontSizes` type
This commit is contained in:
Jeppe Reinhold 2024-05-15 13:00:28 +02:00 committed by GitHub
commit 3e5fb4657f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ const Wrapper = styled.div(withReset, ({ theme }) => ({
export interface TypesetProps {
fontFamily?: string;
fontSizes: string[];
fontSizes: (string | number)[];
fontWeight?: number;
sampleText?: string;
}

View File

@ -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`).