From 3a9b87b223a50c32fee2c363ab1132a65d0291dc Mon Sep 17 00:00:00 2001 From: Sudhir Mitharwal Date: Tue, 16 Jul 2019 00:15:25 +0530 Subject: [PATCH] docs(svg): add tip for title props accessibility (#7374) --- docusaurus/docs/adding-images-fonts-and-files.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docusaurus/docs/adding-images-fonts-and-files.md b/docusaurus/docs/adding-images-fonts-and-files.md index deb6cc39f89..92704ad1f58 100644 --- a/docusaurus/docs/adding-images-fonts-and-files.md +++ b/docusaurus/docs/adding-images-fonts-and-files.md @@ -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.