Skip to content

Commit

Permalink
docs(svg): add tip for title props accessibility (#7374)
Browse files Browse the repository at this point in the history
  • Loading branch information
sudkumar authored and iansu committed Jul 15, 2019
1 parent dc50dd3 commit 3a9b87b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docusaurus/docs/adding-images-fonts-and-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,5 @@ const App = () => (
```

This is handy if you don't want to load SVG as a separate file. Don't forget the curly braces in the import! The `ReactComponent` import name is special and tells Create React App that you want a React component that renders an SVG, rather than its filename.

> **Tip:** The imported SVG React Component accepts a `title` prop along with other props that a `svg` element accepts. Use this prop to add an accessbile title to your svg component.

0 comments on commit 3a9b87b

Please sign in to comment.