Typedefs
[props]
Props for Button
A component for buttons.
Returns: React.Element — A React component that displays a single button.
Parameters
Name
Type
Description
props
propsReact component props
Props for Button
Properties
Name
Type
Description
classes
ObjectAn object containing the class names for the Button component.
classes.content
stringclasses for the button content
classes.root
stringclasses for root container
classes.root_highPriority
stringclasses for Button if high priority.
classes.root_lowPriority
stringclasses for Button if low priority.
classes.root_normalPriority
stringclasses for Button if normal priority.
priority
stringthe priority/importance of the Button
type
stringthe type of the Button
negative
boolwhether the button should be displayed in red for a negative action
disabled
boolis the button disabled
Source Code: pwa-studio/packages/venia-ui/lib/components/Button/button.js