1 | import React, { Fragment } from 'react';
|
2 | import { Placeholder } from './placeholder';
|
3 | import { Link } from '../typography/link/link';
|
4 | export default {
|
5 | component: Placeholder,
|
6 | title: 'Basics/Placeholder'
|
7 | };
|
8 | export var singleChild = function singleChild() {
|
9 | return React.createElement(Placeholder, null, "This is a placeholder with single child, it's bolded");
|
10 | };
|
11 | singleChild.displayName = "singleChild";
|
12 | export var twoChildren = function twoChildren() {
|
13 | return React.createElement(Placeholder, null, React.createElement(Fragment, {
|
14 | key: "title"
|
15 | }, "This has two children, the first bold"), React.createElement(Fragment, {
|
16 | key: "desc"
|
17 | }, "The second normal weight. Here's a\xA0", React.createElement(Link, {
|
18 | href: "https://storybook.js.org",
|
19 | secondary: true,
|
20 | cancel: false
|
21 | }, "link")));
|
22 | };
|
23 | twoChildren.displayName = "twoChildren"; |
\ | No newline at end of file |