mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 03:41:06 +08:00
docs(components): add font family story for Typeset component
This commit is contained in:
parent
6d760b06da
commit
3c38bbf206
@ -8,9 +8,11 @@ export default {
|
|||||||
|
|
||||||
const fontSizes = ['12px', '14px', '16px', '20px', '24px', '32px', '40px', '48px'];
|
const fontSizes = ['12px', '14px', '16px', '20px', '24px', '32px', '40px', '48px'];
|
||||||
const fontWeight = 900;
|
const fontWeight = 900;
|
||||||
|
const fontFamily = 'monospace';
|
||||||
|
|
||||||
export const withFontSizes = () => <Typeset fontSizes={fontSizes} />;
|
export const withFontSizes = () => <Typeset fontSizes={fontSizes} />;
|
||||||
export const withFontWeight = () => <Typeset fontSizes={fontSizes} fontWeight={fontWeight} />;
|
export const withFontWeight = () => <Typeset fontSizes={fontSizes} fontWeight={fontWeight} />;
|
||||||
|
export const withFontFamily = () => <Typeset fontSizes={fontSizes} fontFamily={fontFamily} />;
|
||||||
export const withWeightText = () => (
|
export const withWeightText = () => (
|
||||||
<Typeset fontSizes={fontSizes} fontWeight={fontWeight} sampleText="Heading" />
|
<Typeset fontSizes={fontSizes} fontWeight={fontWeight} sampleText="Heading" />
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user