slate/pages/system/loaders.js
jasonleyser 1efa773be9 Added animated page loaders
Added six page loader components
2020-07-20 17:01:28 -06:00

100 lines
2.5 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";
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.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 />
<System.CodeBlock>
{`
import {
LoaderCircles,
LoaderDiamonds,
LoaderMoon,
LoaderRotate,
LoaderProgress,
LoaderSpinner,
} from "~/components/system/components/Loaders";
`}
</System.CodeBlock>
<br />
<br />
<System.H2>Usage</System.H2>
<hr />
<br />
<System.P>Circles</System.P>
<br />
<System.LoaderCircles />
<br />
<System.CodeBlock>{`<LoaderCircles />`}</System.CodeBlock>
<br />
<br />
<br />
<System.P>Progress Bar</System.P>
<br />
<System.LoaderProgress />
<br />
<System.CodeBlock>{`<LoaderProgress />`}</System.CodeBlock>
<br />
<br />
<br />
<System.P>Spinner</System.P>
<br />
<System.LoaderSpinner />
<br />
<br />
<System.CodeBlock>{`<LoaderSpinner />`}</System.CodeBlock>
<br />
<br />
<br />
<System.P>Diamonds</System.P>
<br />
<System.LoaderDiamonds />
<br />
<System.CodeBlock>{`<LoaderDiamonds />`}</System.CodeBlock>
<br />
<br />
<br />
<System.P>Rotate</System.P>
<br />
<System.LoaderRotate />
<br />
<System.CodeBlock>{`<LoaderRotate />`}</System.CodeBlock>
<br />
<br />
<br />
<System.P>Moon</System.P>
<br />
<System.LoaderMoon />
<br />
<System.CodeBlock>{`<LoaderMoon />`}</System.CodeBlock>
</SystemPage>
);
}
}