A branded button component.

Parameters:
NameTypeDescription
propsobject

Component props.

Properties
NameTypeDescription
customAttributesobject

Custom attributes for the component.

customClassesstring | Array | object

Custom classes for the component.

disabledboolean

Whether the button is disabled or not.

labelstring

The label for the button.

onClickfunction

On click handler for the button.

spacingstring | number | Array | object

The spacing for the component, as a string, number, array, or object.

SvgJSX.Element | null

Svg element for the brand.

typestring

The button type.

Since
  • 4.3.1
Returns:

The branded button component.

Type: 
JSX.Element
Example
import BrandedButton from '@gravityforms/components/react/admin/elements/Button/BrandedButton';

return (
    <BrandedButton onClick={ () => {} } type="white" Svg={ <Svg /> } label={ 'Click me' } />
);