slate/pages/system/tooltips.js
2020-06-23 19:02:55 -07:00

61 lines
1.9 KiB
JavaScript

import * as React from 'react';
import * as System from '~/components/system';
import Group from '~/components/system/Group';
import SystemPage from '~/components/system/SystemPage';
import ViewSourceLink from '~/components/system/ViewSourceLink';
export default class SystemPageTooltips extends React.Component {
render() {
return (
<SystemPage title="FCDS: Tooltips" description="Lorem Ipsum." url="https://fps.onrender.com/system/tooltips">
<System.H1>
Tooltips <ViewSourceLink file="tooltips.js" />
</System.H1>
<br />
<br />
<System.P>The Tooltip component is used to provide the user with more information in a message that appears when they interact with an element.</System.P>
<br />
<br />
<System.H2>Usage</System.H2>
<hr />
<br />
<System.P>Declare the Tooltip component.</System.P>
<br />
<System.CodeBlock>
{`<System.TooltipAnchor tooltip="Hello friends!!" />`}
</System.CodeBlock>
<br />
<br />
<System.H2>Output</System.H2>
<hr />
<br />
<System.TooltipAnchor tooltip="Hello friends!!" />
<br />
<br />
<br />
<System.H2>Props</System.H2>
<hr />
<br />
<Group title='Tooltip'>
<System.Table
data={{
columns: [
{ key: 'a', name: 'Name', width: '128px' },
{ key: 'b', name: 'Type', width: '88px' },
{ key: 'c', name: 'Default', width: '88px' },
{ key: 'd', name: 'Description', width: '100%' },
],
rows: [
{ id: 1, a: 'tooltip', b: 'string', c: 'null', d:'Output text on the tooltip' },
{ id: 2, a: 'height', b: 'number', c: '24px', d: 'Height of the tooltip' },
],
}}
/>
</Group>
</SystemPage>
);
}
}