Typedefs
[props]
Props for ButtonItem
Page Builder ButtonItem component.
This component is part of the Page Builder / PWA integration. It can be consumed without Page Builder.
Returns: React.Element — A React component that displays a button.
Parameters
Name
Type
Description
props
propsReact component props
Props for ButtonItem
Properties
Name
Type
Description
buttonType
StringSets button type option
link
StringUrl to the page opened when button clicked
linkType
StringType of the linked page
openInNewTab
StringToggles the option to open linked page in the new tab
text
StringButton text
textAlign
StringButton text align
border
StringCSS border property
borderColor
StringCSS border color property
borderWidth
StringCSS border width property
borderRadius
StringCSS border radius property
marginTop
StringCSS margin top property
marginRight
StringCSS margin right property
marginBottom
StringCSS margin bottom property
marginLeft
StringCSS margin left property
paddingTop
StringCSS padding top property
paddingRight
StringCSS padding right property
paddingBottom
StringCSS padding bottom property
paddingLeft
StringCSS padding left property
cssClasses
ArrayList of CSS classes to be applied to the component
Source Code: pwa-studio/packages/pagebuilder/lib/ContentTypes/ButtonItem/buttonItem.js