Envisioning LogoEnvisioning App (6.3.0)
Blocks

ButtonBlock

ButtonBlock

ButtonBlock

ButtonBlock

Object containing the following properties:

PropertyDescriptionTypeDefault
block (*)must be ButtonBlock'ButtonBlock'
idstring'ButtonBlock'
mainLabel (*)Button label (supports templates)string | Record<string, string> | string
maxWidthnumber
extraLabelstring | Record<string, string> | string
mainLabelSize'lg' | 'md' | 'sm' | 'xs'
backgroundColor'current' | 'transparent' | 'black' | 'white' | 'gray' | 'border' | 'tick' | 'disabled' | 'dimmed' | 'foreground' | 'panel-down' | 'panel' | 'panel-up' | 'panel-plus' | 'accent' | 'accent-up' | 'accent-fg' | 'accent2' | 'accent2-up' | 'accent2-fg' | ... or use a custom template (external:id). Check the Icons page for more information. or WARNING: Zod type ZodCustom not supported
backgroundColorHover'current' | 'transparent' | 'black' | 'white' | 'gray' | 'border' | 'tick' | 'disabled' | 'dimmed' | 'foreground' | 'panel-down' | 'panel' | 'panel-up' | 'panel-plus' | 'accent' | 'accent-up' | 'accent-fg' | 'accent2' | 'accent2-up' | 'accent2-fg' | ... or use a custom template (external:id). Check the Icons page for more information. or WARNING: Zod type ZodCustom not supported
foregroundColor'current' | 'transparent' | 'black' | 'white' | 'gray' | 'border' | 'tick' | 'disabled' | 'dimmed' | 'foreground' | 'panel-down' | 'panel' | 'panel-up' | 'panel-plus' | 'accent' | 'accent-up' | 'accent-fg' | 'accent2' | 'accent2-up' | 'accent2-fg' | ... or use a custom template (external:id). Check the Icons page for more information. or WARNING: Zod type ZodCustom not supported
foregroundColorHover'current' | 'transparent' | 'black' | 'white' | 'gray' | 'border' | 'tick' | 'disabled' | 'dimmed' | 'foreground' | 'panel-down' | 'panel' | 'panel-up' | 'panel-plus' | 'accent' | 'accent-up' | 'accent-fg' | 'accent2' | 'accent2-up' | 'accent2-fg' | ... or use a custom template (external:id). Check the Icons page for more information. or WARNING: Zod type ZodCustom not supported
addWrapperboolean
wrapperClassNamestring
alignment'center' | 'left' | 'right'
variant'default' | 'destructive' | 'disabled' | 'outline' | 'invisible'
size'sm' | 'md' | 'lg' | 'xl' | 'icon' | 'neutral'
format'default' | 'pill'
iconLeftName'arrowLeft' | 'arrowRight' | 'arrowUpRight' | 'arrowDown' | 'blocks' | 'blend' | 'box' | 'cancel' | 'copyMarkdownEv' | 'circleBlocksEv' | 'chevronDown' | 'download' | 'draftingCompass' | 'chevronLeft' | 'chevronRight' | 'chevronsLeftRight' | 'circleCheck' | 'circleHelp' | 'circleX' | 'circleXEv' | ... or use a custom template (external:id). Check the Icons page for more information.
iconRightName'arrowLeft' | 'arrowRight' | 'arrowUpRight' | 'arrowDown' | 'blocks' | 'blend' | 'box' | 'cancel' | 'copyMarkdownEv' | 'circleBlocksEv' | 'chevronDown' | 'download' | 'draftingCompass' | 'chevronLeft' | 'chevronRight' | 'chevronsLeftRight' | 'circleCheck' | 'circleHelp' | 'circleX' | 'circleXEv' | ... or use a custom template (external:id). Check the Icons page for more information.
targetstring
isWideboolean
dataPropsData props to pass to the Button. Example: \{ 'data-tally-open': 'xzxzxz' }Record<string, any>
customClassNameCustom class names to pass to the Button. Example: 'custom-class' or 'custom-class-1 custom-class-2'. Custom class names are applied after the default class names.string
toLink target (path or template)Object with properties:
  • page: string
  • id: string
urlstring
disabledboolean

(*) Required.

On this page