Skip to content

Latest commit

 

History

History
27 lines (14 loc) · 733 Bytes

bento-common-props.md

File metadata and controls

27 lines (14 loc) · 733 Bytes

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.