Skip to content

Commit

Permalink
Adding documentation on README for cdnUrl property
Browse files Browse the repository at this point in the history
  • Loading branch information
tnovau committed Mar 18, 2021
1 parent 0f3fb3d commit 2169b09
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ import { CircleFlag } from 'react-circle-flags'
export const SpanishFlag = () => <CircleFlag countryCode="es" height="35" />
```

### With custom CDN

```jsx
import React from 'react'
import { CircleFlag } from 'react-circle-flags'

export const SpanishFlag = () => <CircleFlag countryCode="es" height="35" cdnUrl="https://magic-cdn.com/flags/" />
```

You can pass all the react's `React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>` props to CircleFlag. :rocket:

## Docs && Gallery
Expand Down

0 comments on commit 2169b09

Please sign in to comment.