Typedefs
[props]
Props for Trigger
A component that will trigger a given action.
Returns: React.Element — A React component that when triggered invokes the action.
Parameters
Name
Type
Description
props
propsReact component props
Props for Trigger
Properties
Name
Type
Description
action
functionthe handler for on the
onClick event handler.children
ReactNodeLikeany elements that will be child elements inside the root container.
classes
ObjectAn object containing the class names for the Trigger component.
classes.root
stringclasses for root container
Source Code: pwa-studio/packages/venia-ui/lib/components/Trigger/trigger.js