mirror of
https://github.com/zhigang1992/react-content-loader.git
synced 2026-04-28 20:25:30 +08:00
refactor(Readme and types): Cosmetic things
This commit is contained in:
24
README.md
24
README.md
@@ -59,18 +59,18 @@ const MyLoader = () => (
|
||||
|
||||
## Options
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| ------------------- | --------- | ---------------- | ------------------------------------------------------------ |
|
||||
| speed | _Number_ | `2` | Animation speed |
|
||||
| animate | _Boolean_ | `true` | `false` to render with no animation |
|
||||
| width | _Number_ | `400` | **viewBox** width of SVG |
|
||||
| height | _Number_ | `130` | **viewBox** height of SVG |
|
||||
| style | _Object_ | `null` | Ex: `{ marginTop: '50px' }` |
|
||||
| primaryColor | _String_ | `#f3f3f3` | Background the SVG |
|
||||
| secondaryColor | _String_ | `#ecebeb` | Animation color |
|
||||
| preserveAspectRatio | _String_ | `xMidYMid meet` | Aspect ratio option of SVG |
|
||||
| className | _String_ | '' | Classname in the <svg /> |
|
||||
| uniquekey | _String_ | random unique id | **Use the same key value, it'll solve some problems to SSR** |
|
||||
| Name | Type | Default | Description |
|
||||
| ----------------------- | ----------- | ---------------- | ---------------------------------------------------------- |
|
||||
| **animate** | `{Boolean}` | `true` | `false` to render with no animation |
|
||||
| **speed** | `{Number}` | `2` | Animation speed in seconds |
|
||||
| **className** | `{String}` | `''` | Classname in the `<svg/>` |
|
||||
| **width** | `{Number}` | `400` | viewBox width of `<svg/>` |
|
||||
| **height** | `{Number}` | `130` | viewBox height of `<svg/>` |
|
||||
| **preserveAspectRatio** | `{String}` | `xMidYMid meet` | Aspect ratio option of `<svg/>` |
|
||||
| **primaryColor** | `{String}` | `#f3f3f3` | Background |
|
||||
| **secondaryColor** | `{String}` | `#ecebeb` | Animation color |
|
||||
| **style** | `{Object}` | `null` | Ex: `{ marginTop: '50px' }` |
|
||||
| **uniquekey** | `{String}` | random unique id | **Use the same key value, it works to Server Side Render** |
|
||||
|
||||
### Examples
|
||||
|
||||
|
||||
Reference in New Issue
Block a user