You can edit 8 Components for free. Get premium for unlimited access.
A tag is a static and actionable component that displays an element's status, key properties, or categories, and allows users to input information for filtering content.
The Badge is a customizable component designed to display a small, medium or large badge with different styles and background colors. It is commonly used for indicators like "Success" or "Error".
This component inherits props from the Badge.
You can edit the type with the default, success or error parameter.

Image 2.1 : Type default

Image 2.2 : Type success

Image 2.3 : Type error
You can edit the size with the lg, md or sm parameter.

Image 3.1 : Size lg

Image 3.2 : Size md

Image 3.3 : Size sm
The Badge is a customizable component designed to display a small badge or label with different styles and background colors. It is commonly used for indicators like "New," "Error" or "Success".
This component inherits props from the Badge.
-
You can edit the type with the BadgeType.default, BadgeType.error or BadgeType.success parameter.
You can edit the size with the BadgeSize.sm, BadgeSize.md or BadgeSize.lg parameter.
Preview
Code
const DlTag(
label: 'Tag',
)Add this code example to your project to see how the component works.
const DlTag(
label: 'Tag',
)DlTag is a compact token-driven label component with configurable size , mode and semantic type , plus optional left/right icons that inherit the same foreground color as the text.
Size
Preview
Code
const Wrap(
spacing: DlSpacingTokens.p_16,
runSpacing: DlSpacingTokens.p_16,
children: [
DlTag(
label: 'Tag',
size: DlTagSize.sm
),
DlTag(
label: 'Tag',
size: DlTagSize.md
),
DlTag(
label: 'Tag',
size: DlTagSize.lg
),
],
)Variants
Preview
Code
const Wrap(
spacing: DlSpacingTokens.p_16,
runSpacing: DlSpacingTokens.p_16,
children: [
DlTag(
label: 'Tag',
type: DlTagType.defaultType,
mode: DlTagMode.light,
),
DlTag(
label: 'Error',
type: DlTagType.error,
mode: DlTagMode.light,
),
DlTag(
label: 'Warning',
type: DlTagType.warning,
mode: DlTagMode.light,
),
DlTag(
label: 'Success',
type: DlTagType.success,
mode: DlTagMode.light,
),
],
)Mode
Preview
Code
const Wrap(
spacing: DlSpacingTokens.p_16,
runSpacing: DlSpacingTokens.p_16,
children: [
DlTag(
label: 'Tag',
type: DlTagType.defaultType,
mode: DlTagMode.dark,
),
DlTag(
label: 'Error',
type: DlTagType.error,
mode: DlTagMode.dark,
),
DlTag(
label: 'Warning',
type: DlTagType.warning,
mode: DlTagMode.dark,
),
DlTag(
label: 'Success',
type: DlTagType.success,
mode: DlTagMode.dark,
),
],
)You have questions or need help?
You want to try?
Save time and money?