JSX Attributes

prop:*

Edit this page

Forces the prop to be treated as a property instead of an attribute.

<div prop:scrollTop={props.scrollPos + "px"} />
Strong-Typing Custom Properties

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

Last updated: 3/24/26, 3:52 PMReport an issue with this page