mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 11:11:53 +08:00
Merge pull request #26475 from noranda/nb/fix-typeset-fontsizes-type
Docs: Fix `Typeset` Doc block `fontSizes` type
This commit is contained in:
commit
3e5fb4657f
@ -35,7 +35,7 @@ const Wrapper = styled.div(withReset, ({ theme }) => ({
|
||||
|
||||
export interface TypesetProps {
|
||||
fontFamily?: string;
|
||||
fontSizes: string[];
|
||||
fontSizes: (string | number)[];
|
||||
fontWeight?: number;
|
||||
sampleText?: string;
|
||||
}
|
||||
|
@ -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`).
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user