2020-06-22 14:00:51 +03:00
|
|
|
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';
|
2020-06-22 14:00:51 +03:00
|
|
|
|
|
|
|
import SystemPage from '~/components/system/SystemPage';
|
2020-06-22 14:15:04 +03:00
|
|
|
import ViewSourceLink from '~/components/system/ViewSourceLink';
|
2020-06-22 14:00:51 +03:00
|
|
|
|
|
|
|
export default class SystemPageTooltips extends React.Component {
|
|
|
|
render() {
|
|
|
|
return (
|
2020-07-01 10:31:55 +03:00
|
|
|
<SystemPage title="SDS: Tooltips" description="..." url="https://fps.onrender.com/system/tooltips">
|
2020-06-22 14:15:04 +03:00
|
|
|
<System.H1>
|
2020-07-01 10:31:55 +03:00
|
|
|
Tooltips <ViewSourceLink file="system/tooltips.js" />
|
2020-06-22 14:15:04 +03:00
|
|
|
</System.H1>
|
2020-06-22 14:00:51 +03:00
|
|
|
<br />
|
|
|
|
<br />
|
2020-07-01 10:31:55 +03:00
|
|
|
<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>
|
2020-06-22 14:00:51 +03:00
|
|
|
<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 />
|
2020-07-01 10:31:55 +03:00
|
|
|
<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 />
|
2020-06-22 14:00:51 +03:00
|
|
|
<System.TooltipAnchor tooltip="Hello friends!!" />
|
2020-06-24 05:02:55 +03:00
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<System.H2>Props</System.H2>
|
|
|
|
<hr />
|
|
|
|
<br />
|
2020-07-01 10:31:55 +03:00
|
|
|
<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: [
|
2020-07-01 10:31:55 +03:00
|
|
|
{ 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>
|
2020-06-22 14:00:51 +03:00
|
|
|
</SystemPage>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|