mirror of
https://github.com/zhigang1992/react-content-loader.git
synced 2026-03-29 22:41:51 +08:00
re #148, re #137, re #106, re #89, re #16, re #6 * build(rollup): native bundle * feat(native): stylized components * build(typescript): react native check * feat(typing): improves * build(tsconfig): by environment * test(web native): setup * test(native): support * docs(readme): native documentation
59 lines
779 B
Plaintext
59 lines
779 B
Plaintext
---
|
|
name: Usage
|
|
route: /usage
|
|
---
|
|
|
|
import { Playground } from 'docz'
|
|
|
|
import ContentLoader, {
|
|
Facebook,
|
|
Instagram,
|
|
Code,
|
|
List,
|
|
BulletList,
|
|
} from '../src'
|
|
|
|
## Usage
|
|
|
|
## Presets
|
|
|
|
### Facebook Style Loader
|
|
|
|
<Playground>
|
|
<Facebook />
|
|
</Playground>
|
|
|
|
### Instagram Style Loader
|
|
|
|
<Playground>
|
|
<Instagram />
|
|
</Playground>
|
|
|
|
### Code Style Loader
|
|
|
|
<Playground>
|
|
<Code />
|
|
</Playground>
|
|
|
|
### List Style Loader
|
|
|
|
<Playground>
|
|
<List />
|
|
</Playground>
|
|
|
|
### BulletList Style Loader
|
|
|
|
<Playground>
|
|
<BulletList />
|
|
</Playground>
|
|
|
|
### Custom Loader
|
|
|
|
<Playground>
|
|
<ContentLoader>
|
|
<rect x="80" y="17" rx="4" ry="4" width="300" height="13" />
|
|
<rect x="82" y="44" rx="3" ry="3" width="250" height="10" />
|
|
<circle cx="35" cy="35" r="35" />
|
|
</ContentLoader>
|
|
</Playground>
|