slate/pages/system/tooltips.js

61 lines
1.9 KiB
JavaScript
Raw Normal View History

import * as React from 'react';
import * as System from '~/components/system';
2020-06-24 05:02:55 +03:00
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="SDS: Tooltips" description="..." url="https://fps.onrender.com/system/tooltips">
<System.H1>
Tooltips <ViewSourceLink file="system/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 />
2020-06-24 05:02:55 +03:00
<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>
2020-06-24 05:02:55 +03:00
<br />
<br />
<System.H2>Output</System.H2>
<hr />
<br />
<System.TooltipAnchor tooltip="Hello friends!!" />
2020-06-24 05:02:55 +03:00
<br />
<br />
<br />
<System.H2>Props</System.H2>
<hr />
<br />
<Group title="Tooltip">
2020-06-24 05:02:55 +03:00
<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' },
2020-06-24 05:02:55 +03:00
{ id: 2, a: 'height', b: 'number', c: '24px', d: 'Height of the tooltip' },
],
}}
/>
</Group>
</SystemPage>
);
}
}