JSX attributes

attr:*

Edit this page

Forces the prop to be treated as an attribute instead of a property. Useful for Web Components where you want to set attributes.

<my-element attr:status={props.status} />
Strong-Typing Custom Attributes

Type definitions are required when using TypeScript. See theTypeScript page for examples.

Report an issue with this page