-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(amp-accordion): add readme docs for 1.0 amp-accordion
- Loading branch information
Showing
4 changed files
with
669 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Common Props in Preact/React Bento Components | ||
|
||
The following are common props that should be be supported in al Bento Preact/React Bento Components when possible. | ||
|
||
## `as` | ||
|
||
Allows consumer to customize the html tag that is used to implement a component. | ||
|
||
## `class` (Preact only) | ||
|
||
Allows consumer to add class(es) to the given component. | ||
|
||
## `className` (React only) | ||
|
||
Allows consumer to add class(es) to the given component. | ||
|
||
## `id` | ||
|
||
Allows consumer to set the `id` attribute on the given component. | ||
|
||
## `role` | ||
|
||
Allows consumer to set the `role` attribute on the given component to control accessibility characteristics. | ||
|
||
## `tabIndex` | ||
|
||
Allows consumer to set the `tabIndex` attribute on the given component to control tab order. |
Oops, something went wrong.