Skip to content

Commit

Permalink
Omit link to legacy list of React synthetic events in component docum…
Browse files Browse the repository at this point in the history
…entation
  • Loading branch information
mbohal committed Jan 10, 2024
1 parent 828688b commit 02c8215
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/components/Alert/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,9 @@ React.createElement(() => {
## Forwarding HTML Attributes

In addition to the options below in the [component's API](#api) section, you
can specify [React synthetic events] or **any HTML attribute you like.** All
attributes that don't interfere with the API are forwarded to the root `<div>`
HTML element. This enables making the component interactive and helps to improve
its accessibility.
can specify **any HTML attribute you like.** All attributes that don't interfere
with the API are forwarded to the root `<div>` HTML element. This enables making
the component interactive and helps to improve its accessibility.

👉 Refer to the MDN reference for the full list of supported attributes of the
[div] element.
Expand Down Expand Up @@ -211,5 +210,4 @@ Where:
- `<PROPERTY>` is one of `color` (color of text), `foreground-color` (color of
border, icon, links, and emphasis), or `background-color`.

[React synthetic events]: https://reactjs.org/docs/events.html
[div]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div#attributes

0 comments on commit 02c8215

Please sign in to comment.