slate/pages/_/system/loaders.js
2021-07-07 14:10:31 -07:00

94 lines
2.4 KiB
JavaScript

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";
import CodeBlock from "~/components/system/CodeBlock";
export default class SystemLoaders extends React.Component {
render() {
return (
<SystemPage title="SDS: Loaders" description="..." url="https://slate.host/_/system/loaders">
<System.H1>
Loaders <ViewSourceLink file="system/loaders.js" />
</System.H1>
<br />
<br />
<System.P1>The Loader Component is used to output an animated page loader.</System.P1>
<br />
<br />
<br />
<System.H2>Imports</System.H2>
<hr />
<br />
<System.P1>Import the Loader Components.</System.P1>
<br />
<br />
<CodeBlock>
{`import {
LoaderCircles,
LoaderDiamonds,
LoaderMoon,
LoaderRotate,
LoaderProgress,
LoaderSpinner,
} from "slate-react-system";
`}
</CodeBlock>
<br />
<br />
<System.H2>Usage</System.H2>
<hr />
<br />
<System.P1>Circles</System.P1>
<br />
<System.LoaderCircles />
<br />
<CodeBlock>{`<LoaderCircles />`}</CodeBlock>
<br />
<br />
<br />
<System.P1>Progress Bar</System.P1>
<br />
<System.LoaderProgress />
<br />
<CodeBlock>{`<LoaderProgress />`}</CodeBlock>
<br />
<br />
<br />
<System.P1>Spinner</System.P1>
<br />
<System.LoaderSpinner />
<br />
<br />
<CodeBlock>{`<LoaderSpinner />`}</CodeBlock>
<br />
<br />
<br />
<System.P1>Diamonds</System.P1>
<br />
<System.LoaderDiamonds />
<br />
<CodeBlock>{`<LoaderDiamonds />`}</CodeBlock>
<br />
<br />
<br />
<System.P1>Rotate</System.P1>
<br />
<System.LoaderRotate />
<br />
<CodeBlock>{`<LoaderRotate />`}</CodeBlock>
<br />
<br />
<br />
<System.P1>Moon</System.P1>
<br />
<System.LoaderMoon />
<br />
<CodeBlock>{`<LoaderMoon />`}</CodeBlock>
</SystemPage>
);
}
}