Skip to content

Commit 3a9b87b

Browse files
sudkumariansu
authored andcommitted
docs(svg): add tip for title props accessibility (#7374)
1 parent dc50dd3 commit 3a9b87b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docusaurus/docs/adding-images-fonts-and-files.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,5 @@ const App = () => (
5959
```
6060

6161
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.
62+
63+
> **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 commit comments

Comments
 (0)