Appearance
Function: BadgeField()
ts
function BadgeField(props: UiBadgeFieldProps): Block;Defined in: src/renderer/blocks/index.ts:900
Badge field.
Parameters
| Parameter | Type |
|---|---|
props | UiBadgeFieldProps |
Returns
Examples
ts
BadgeField({
name: 'skills',
label: 'Select skills',
items: [
{label: 'JavaScript', value: 'js'},
{label: 'TypeScript', value: 'ts'},
{label: 'React', value: 'react'},
],
});ts
BadgeField({
name: 'priorities',
label: 'Select priorities',
items: [
{label: 'High', value: 'high', bgColor: '#dc2626', color: '#ffffff'},
{label: 'Medium', value: 'medium', bgColor: '#f59e0b', color: '#ffffff'},
{label: 'Low', value: 'low', bgColor: '#10b981', color: '#ffffff'},
],
});