Edit in GitHubLog an issue

Trigger

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

NameTypeDescription
propspropsReact component props

Props for Trigger

Properties

NameTypeDescription
actionfunctionthe handler for on the onClick event handler.
childrenReactNodeLikeany elements that will be child elements inside the root container.
classesObjectAn object containing the class names for the Trigger component.
classes.rootstringclasses for root container

Source Code: pwa-studio/packages/venia-ui/lib/components/Trigger/trigger.js

  • Privacy
  • Terms of Use
  • Do not sell my personal information
  • AdChoices
Copyright © 2022 Adobe. All rights reserved.