diff --git a/README.md b/README.md index c7cc2fd507..d3f541506f 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,7 @@ Icon components accept all props that you can pass to a normal SVG element, incl - **size?**: `number | string` – Icon height & width. As with standard React elements, this can be a number, or a string with units in `px`, `%`, `em`, `rem`, `pt`, `cm`, `mm`, `in`. - **weight?**: `"thin" | "light" | "regular" | "bold" | "fill" | "duotone"` – Icon weight/style. Can also be used, for example, to "toggle" an icon's state: a rating component could use Stars with `weight="regular"` to denote an empty star, and `weight="fill"` to denote a filled star. - **mirrored?**: `boolean` – Flip the icon horizontally. Can be useful in RTL languages where normal icon orientation is not appropriate. +- **alt?**: `string` – Add accessible alt text to an icon. ### Context diff --git a/example/App.tsx b/example/App.tsx index ac2c240f3e..69951066eb 100644 --- a/example/App.tsx +++ b/example/App.tsx @@ -56,6 +56,7 @@ const App = () => { color={color} style={{ verticalAlign: "middle" }} weight="fill" + alt="heart symbol" />{" "} from Bub Tub.

diff --git a/package.json b/package.json index 6fdacb09e0..963215ac92 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "phosphor-react", - "version": "1.4.0", + "version": "1.4.1", "description": "A clean and friendly icon family for React", "author": "rektdeckard", "license": "MIT",