slate/pages/_/system/loaders.js

94 lines
2.4 KiB
JavaScript
Raw Normal View History

import * as React from "react";
import * as System from "~/components/system";
import * as Constants from "~/common/constants";
import SystemPage from "~/components/system/SystemPage";
import ViewSourceLink from "~/components/system/ViewSourceLink";
2020-07-21 04:34:53 +03:00
import CodeBlock from "~/components/system/CodeBlock";
export default class SystemLoaders extends React.Component {
render() {
return (
2021-03-08 13:13:56 +03:00
<SystemPage title="SDS: Loaders" description="..." url="https://slate.host/_/system/loaders">
<System.H1>
Loaders <ViewSourceLink file="system/loaders.js" />
</System.H1>
<br />
<br />
2021-03-08 13:13:56 +03:00
<System.P>The Loader Component is used to output an animated page loader.</System.P>
<br />
<br />
<br />
<System.H2>Imports</System.H2>
<hr />
<br />
<System.P>Import the Loader Components.</System.P>
<br />
<br />
2020-07-21 04:34:53 +03:00
<CodeBlock>
2020-07-28 23:27:53 +03:00
{`import {
LoaderCircles,
LoaderDiamonds,
LoaderMoon,
LoaderRotate,
LoaderProgress,
LoaderSpinner,
2021-03-08 13:13:56 +03:00
} from "slate-react-system";
`}
2020-07-21 04:34:53 +03:00
</CodeBlock>
<br />
<br />
<System.H2>Usage</System.H2>
<hr />
<br />
<System.P>Circles</System.P>
<br />
<System.LoaderCircles />
<br />
2020-07-21 04:34:53 +03:00
<CodeBlock>{`<LoaderCircles />`}</CodeBlock>
<br />
<br />
<br />
<System.P>Progress Bar</System.P>
<br />
<System.LoaderProgress />
<br />
2020-07-21 04:34:53 +03:00
<CodeBlock>{`<LoaderProgress />`}</CodeBlock>
<br />
<br />
<br />
<System.P>Spinner</System.P>
<br />
<System.LoaderSpinner />
<br />
<br />
2020-07-21 04:34:53 +03:00
<CodeBlock>{`<LoaderSpinner />`}</CodeBlock>
<br />
<br />
<br />
<System.P>Diamonds</System.P>
<br />
<System.LoaderDiamonds />
<br />
2020-07-21 04:34:53 +03:00
<CodeBlock>{`<LoaderDiamonds />`}</CodeBlock>
<br />
<br />
<br />
<System.P>Rotate</System.P>
<br />
<System.LoaderRotate />
<br />
2020-07-21 04:34:53 +03:00
<CodeBlock>{`<LoaderRotate />`}</CodeBlock>
<br />
<br />
<br />
<System.P>Moon</System.P>
<br />
<System.LoaderMoon />
<br />
2020-07-21 04:34:53 +03:00
<CodeBlock>{`<LoaderMoon />`}</CodeBlock>
</SystemPage>
);
}
}