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 ee90340 commit 46f32d7
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 49 deletions.
6 changes: 1 addition & 5 deletions docs/docs/components/Radio.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@ import { Radio } from 'react-loader-spinner'
/>

## More Example
---

```jsx live
<Radio colors={['#8C5E58', '#2B061E', '#361134']} />
```

```jsx live
<Radio colors={['#51E5FF', '#7DE2D1', '#FF7E6B']} />
```
4 changes: 1 addition & 3 deletions docs/docs/components/color-ring.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ import { ColorRing } from 'react-loader-spinner'
/>

## More example:

```jsx live
---
<ColorRing
visible={true}
height="80"
Expand All @@ -62,4 +61,3 @@ import { ColorRing } from 'react-loader-spinner'
wrapperClass="blocks-wrapper"
colors={['#b8c480', '#B2A3B5', '#F4442E', '#51E5FF', '#429EA6']}
/>
```
4 changes: 1 addition & 3 deletions docs/docs/components/fidget-spinner.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,5 @@ import { FidgetSpinner } from 'react-loader-spinner'
/>

## More Example

```jsx live
---
<FidgetSpinner />
```
2 changes: 1 addition & 1 deletion docs/docs/components/hearts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ import { Hearts } from 'react-loader-spinner'
description: 'Visibility of the component',
},
]}
/>{' '}
/>
15 changes: 1 addition & 14 deletions docs/docs/components/line-wave.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -106,26 +106,13 @@ import { LineWave } from 'react-loader-spinner'
/>{' '}

## More Examples:
---

### Example 1

```jsx live
<LineWave color="red" firstLineColor="green" />
```

### Example 2

```jsx live
<LineWave color="red" middleLineColor="green" lastLineColor="green" />
```

### Example 3

```jsx live
<LineWave
color="red"
firstLineColor="blue"
middleLineColor="green"
lastLineColor="grey"
/>
```
2 changes: 1 addition & 1 deletion docs/docs/components/mutating-dots.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ import { MutatingDots } from 'react-loader-spinner'
description: 'Visibility of the dots',
},
]}
/>{' '}
/>
14 changes: 1 addition & 13 deletions docs/docs/components/oval.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,7 @@ import { Oval } from 'react-loader-spinner'
/>{' '}

## More examples

### Example 1

```jsx live
---
<Oval
ariaLabel="loading-indicator"
height={100}
Expand All @@ -113,11 +110,7 @@ import { Oval } from 'react-loader-spinner'
color="blue"
secondaryColor="white"
/>
```

### Example 2

```jsx live
<Oval
ariaLabel="loading-indicator"
height={100}
Expand All @@ -127,11 +120,7 @@ import { Oval } from 'react-loader-spinner'
color="blue"
secondaryColor="red"
/>
```

### Example 3

```jsx live
<Oval
ariaLabel="loading-indicator"
height={100}
Expand All @@ -141,4 +130,3 @@ import { Oval } from 'react-loader-spinner'
color="blue"
secondaryColor="Grey"
/>
```
5 changes: 1 addition & 4 deletions docs/docs/components/rotating-square.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,10 @@ import { RotatingSquare } from 'react-loader-spinner'
]}
/>

## Example 2

```jsx live
## More examples
<RotatingSquare
ariaLabel="rotating-square"
visible={true}
color="grey"
strokeWidth="10"
/>
```
6 changes: 1 addition & 5 deletions docs/docs/components/rotating-triangle.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,7 @@ import { RotatingTriangles } from 'react-loader-spinner'
/>

## More Example
---

```jsx live
<RotatingTriangles colors={['#8C5E58', '#2B061E', '#361134']} />
```

```jsx live
<RotatingTriangles colors={['#51E5FF', '#7DE2D1', '#FF7E6B']} />
```

0 comments on commit 46f32d7

Please sign in to comment.