UNPKG

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