Envisioning LogoEnvisioning App (2.0.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'context' | 'current' | 'transparent' | 'black' | 'white' | 'gray' | 'background' | 'background-plus' | 'background-dimmed' | 'background-disabled' | 'border' | 'foreground' | 'disabled' | 'dimmed' | 'panel-down' | 'panel' | 'panel-up' | 'panel-plus' | 'accent' | 'accent-up' | 'accent-fg' | ... | never
backgroundColorHover'context' | 'current' | 'transparent' | 'black' | 'white' | 'gray' | 'background' | 'background-plus' | 'background-dimmed' | 'background-disabled' | 'border' | 'foreground' | 'disabled' | 'dimmed' | 'panel-down' | 'panel' | 'panel-up' | 'panel-plus' | 'accent' | 'accent-up' | 'accent-fg' | ... | never
foregroundColor'context' | 'current' | 'transparent' | 'black' | 'white' | 'gray' | 'background' | 'background-plus' | 'background-dimmed' | 'background-disabled' | 'border' | 'foreground' | 'disabled' | 'dimmed' | 'panel-down' | 'panel' | 'panel-up' | 'panel-plus' | 'accent' | 'accent-up' | 'accent-fg' | ... | never
foregroundColorHover'context' | 'current' | 'transparent' | 'black' | 'white' | 'gray' | 'background' | 'background-plus' | 'background-dimmed' | 'background-disabled' | 'border' | 'foreground' | 'disabled' | 'dimmed' | 'panel-down' | 'panel' | 'panel-up' | 'panel-plus' | 'accent' | 'accent-up' | 'accent-fg' | ... | never
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' | 'box' | 'cancel' | 'copyMarkdownEv' | 'chevronDown' | 'download' | 'draftingCompass' | 'chevronLeft' | 'chevronRight' | 'chevronsLeftRight' | 'circleCheck' | 'circleHelp' | 'circleX' | 'circleXEv' | 'circle' | 'circleSmall' | ... | never
iconRightName'arrowLeft' | 'arrowRight' | 'arrowUpRight' | 'arrowDown' | 'blocks' | 'box' | 'cancel' | 'copyMarkdownEv' | 'chevronDown' | 'download' | 'draftingCompass' | 'chevronLeft' | 'chevronRight' | 'chevronsLeftRight' | 'circleCheck' | 'circleHelp' | 'circleX' | 'circleXEv' | 'circle' | 'circleSmall' | ... | never
targetstring
isWideboolean
customPropsCustom props to pass to the buttonRecord<string, any>
toLink target (path or template)Object with properties:
  • page: string
  • id: string
urlstring
disabledboolean

(*) Required.

On this page