UNPKG

1.13 kBJavaScriptView Raw
1import React from 'react';
2import { Typeset } from './Typeset';
3export default {
4 title: 'Docs/Typeset',
5 component: Typeset
6};
7var fontSizes = ['12px', '14px', '16px', '20px', '24px', '32px', '40px', '48px'];
8var fontWeight = 900;
9var fontFamily = 'monospace';
10export var withFontSizes = function withFontSizes() {
11 return /*#__PURE__*/React.createElement(Typeset, {
12 fontSizes: fontSizes
13 });
14};
15withFontSizes.displayName = "withFontSizes";
16export var withFontWeight = function withFontWeight() {
17 return /*#__PURE__*/React.createElement(Typeset, {
18 fontSizes: fontSizes,
19 fontWeight: fontWeight
20 });
21};
22withFontWeight.displayName = "withFontWeight";
23export var withFontFamily = function withFontFamily() {
24 return /*#__PURE__*/React.createElement(Typeset, {
25 fontSizes: fontSizes,
26 fontFamily: fontFamily
27 });
28};
29withFontFamily.displayName = "withFontFamily";
30export var withWeightText = function withWeightText() {
31 return /*#__PURE__*/React.createElement(Typeset, {
32 fontSizes: fontSizes,
33 fontWeight: fontWeight,
34 sampleText: "Heading"
35 });
36};
37withWeightText.displayName = "withWeightText";
\No newline at end of file