Supported Attributes
Because of the characteristics of the platforms primarily targeted by React Facet, only a subset of HTML attributes and event handlers is supported by the components already included in the packages.
The following are the props available for the fast-* Components:
Basic React Props
children: works as React children. In thefast-*Components, the type is set toStrictReactNodekeyclassNamerefdangerouslySetInnerHTMLstyle: thestyleobject itself cannot be aFacet, but each of the properties of the object can either be aFacetor a plain value.
Events
As a reminder: these events are different than the ones supported by React DOM, since the synthetic events and other cross-browser and usability features have been stripped away to make the library leaner. This is possible because they are not necessary in the target platforms.
Instead, these events address the native events in the DOM directly, as implemented in modern browsers.
Pointer Events
onClick: (MouseEvent) =>voidonMouseDown: (MouseEvent) =>voidonMouseUp: (MouseEvent) =>voidonTouchStart: (MouseEvent) =>voidonTouchMove: (MouseEvent) =>voidonTouchEnd: (MouseEvent) =>voidonMouseEnter: (MouseEvent) =>voidonMouseLeave: (MouseEvent) =>void
Focus Events
onFocus: (FocusEvent =>voidonBlur: (FocusEvent =>void
Keyboard Events
onKeyPress: (KeyboardEvent) =>voidonKeyDown: (KeyboardEvent) =>voidonKeyUp: (KeyboardEvent) =>void
Component specific properties
img / fast-img
src
a / fast-a
hreftarget
input / fast-input
disabledmaxLengthtypevalue
textarea / fast-textarea
disabledmaxLengthrowsvalue