Skip to content

Function: Badge()

ts
function Badge(props: UiBadgeProps): Block;

Defined in: src/renderer/blocks/index.ts:962

Badge display component.

Parameters

ParameterType
propsUiBadgeProps

Returns

Block

Examples

ts
Badge({name: 'status', label: 'Completed'});
ts
Badge({
  name: 'priority',
  label: 'High priority',
  icon: 'warning',
  bgColor: '#ff4444',
  color: '#ffffff',
});

Matterway Assistant SDK Documentation