Skip to content

Commit

Permalink
Update component examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mhnpd committed Dec 21, 2023
1 parent 46f32d7 commit 7be68b3
Show file tree
Hide file tree
Showing 23 changed files with 31 additions and 10 deletions.
1 change: 1 addition & 0 deletions docs/docs/components/Radio.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ import { Radio } from 'react-loader-spinner'
/>

## More Example

---

<Radio colors={['#8C5E58', '#2B061E', '#361134']} />
Expand Down
1 change: 0 additions & 1 deletion docs/docs/components/audio.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { Audio } from 'react-loader-spinner'

# Audio


<LiveProvider
code={`
render(<Audio
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/components/bars.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { getPropsTableData } from '../../src/components/helpers'
import { Bars } from 'react-loader-spinner'

# Bars

<LiveProvider
code={`
render(<Bars
Expand All @@ -28,7 +29,6 @@ import { Bars } from 'react-loader-spinner'
<LiveError />
</LiveProvider>


---

## Props
Expand Down
3 changes: 1 addition & 2 deletions docs/docs/components/blocks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import { Blocks } from 'react-loader-spinner'
<LiveEditor />
<LiveError />
</LiveProvider>
---
## Props
--- ## Props

<PropsTable properties={[...getPropsTableData('blocks', ['colors'])]} />
1 change: 0 additions & 1 deletion docs/docs/components/circles-with-bar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { CirclesWithBar } from 'react-loader-spinner'

# Circles With Bar


<LiveProvider
code={`
render(<CirclesWithBar
Expand Down
3 changes: 3 additions & 0 deletions docs/docs/components/color-ring.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import { ColorRing } from 'react-loader-spinner'
</LiveProvider>

---

## Props

<PropsTable
Expand All @@ -51,7 +52,9 @@ import { ColorRing } from 'react-loader-spinner'
/>

## More example:

---

<ColorRing
visible={true}
height="80"
Expand Down
3 changes: 2 additions & 1 deletion docs/docs/components/discuss.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import PropsTable from '../../src/components/props-table'
import { LiveProvider, LiveEditor, LiveError, LivePreview } from 'react-live'
import { getPropsTableData } from '../../src/components/helpers'
import {Discuss} from 'react-loader-spinner'
import { Discuss } from 'react-loader-spinner'

# Discuss

Expand All @@ -31,6 +31,7 @@ import {Discuss} from 'react-loader-spinner'
</LiveProvider>

---

## Props

<PropsTable
Expand Down
1 change: 1 addition & 0 deletions docs/docs/components/falling-lines.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import { FallingLines } from 'react-loader-spinner'
</LiveProvider>

---

## Props

<PropsTable
Expand Down
2 changes: 2 additions & 0 deletions docs/docs/components/fidget-spinner.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,7 @@ import { FidgetSpinner } from 'react-loader-spinner'
/>

## More Example

---

<FidgetSpinner />
1 change: 1 addition & 0 deletions docs/docs/components/hourglass.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@ import { Hourglass } from 'react-loader-spinner'
---

## Props

<PropsTable properties={[...getPropsTableData('hourglass', ['color'])]} />
2 changes: 1 addition & 1 deletion docs/docs/components/infinity-spin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import { InfinitySpin } from 'react-loader-spinner'
</LiveProvider>

---

## Props

<PropsTable
Expand All @@ -45,4 +46,3 @@ import { InfinitySpin } from 'react-loader-spinner'
},
]}
/>

1 change: 1 addition & 0 deletions docs/docs/components/line-wave.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ import { LineWave } from 'react-loader-spinner'
/>{' '}

## More Examples:

---

<LineWave color="red" firstLineColor="green" />
Expand Down
3 changes: 3 additions & 0 deletions docs/docs/components/oval.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import { Oval } from 'react-loader-spinner'
</LiveProvider>

---

## Props

<PropsTable
Expand Down Expand Up @@ -100,7 +101,9 @@ import { Oval } from 'react-loader-spinner'
/>{' '}

## More examples

---

<Oval
ariaLabel="loading-indicator"
height={100}
Expand Down
4 changes: 3 additions & 1 deletion docs/docs/components/revolving-dot.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ import { RevolvingDot } from 'react-loader-spinner'
<LiveError />
</LiveProvider>


---

> This spinner is not supported by Safari. [See](https://github.com/mhnpd/react-loader-spinner/issues/150)
---

## Props

<PropsTable
Expand Down
1 change: 1 addition & 0 deletions docs/docs/components/rings.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import { Rings } from 'react-loader-spinner'
> This spinner is not supported by Safari. [See](https://github.com/mhnpd/react-loader-spinner/issues/150)
---

## Props

<PropsTable
Expand Down
2 changes: 2 additions & 0 deletions docs/docs/components/rotating-square.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import { RotatingSquare } from 'react-loader-spinner'
</LiveProvider>

---

## Props

<PropsTable
Expand Down Expand Up @@ -87,6 +88,7 @@ import { RotatingSquare } from 'react-loader-spinner'
/>

## More examples

<RotatingSquare
ariaLabel="rotating-square"
visible={true}
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/components/rotating-triangle.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ import { RotatingTriangles } from 'react-loader-spinner'
<LiveEditor />
<LiveError />
</LiveProvider>
---
## Props
--- ## Props

<PropsTable
properties={[
Expand All @@ -44,6 +43,7 @@ import { RotatingTriangles } from 'react-loader-spinner'
/>

## More Example

---

<RotatingTriangles colors={['#8C5E58', '#2B061E', '#361134']} />
Expand Down
1 change: 1 addition & 0 deletions docs/docs/components/tail-spin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import { TailSpin } from 'react-loader-spinner'
</LiveProvider>

---

## Props

<PropsTable
Expand Down
1 change: 1 addition & 0 deletions docs/docs/components/three-circles.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import { ThreeCircles } from 'react-loader-spinner'
</LiveProvider>

---

## Props

<PropsTable
Expand Down
1 change: 1 addition & 0 deletions docs/docs/components/three-dots.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import { ThreeDots } from 'react-loader-spinner'
</LiveProvider>

---

## Props

<PropsTable
Expand Down
1 change: 1 addition & 0 deletions docs/docs/components/triangle.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import { Triangle } from 'react-loader-spinner'
</LiveProvider>

---

## Props

<PropsTable
Expand Down
1 change: 1 addition & 0 deletions docs/docs/components/vortex.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import { Vortex } from 'react-loader-spinner'
</LiveProvider>

---

## Props

<PropsTable
Expand Down
1 change: 1 addition & 0 deletions docs/docs/components/watch.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import { Watch } from 'react-loader-spinner'
</LiveProvider>

---

## Props

<PropsTable
Expand Down

0 comments on commit 7be68b3

Please sign in to comment.