You can edit 8 Components for free. Get premium for unlimited access.
Button Icon is an icon-only action button for compact interactions where no text label is needed. Use it for actions such as close, expand, edit, or secondary utility actions in toolbars and cards.
The Button Icon is a customizable component designed to display a mini, small, medium or large button icon with different styles and background colors.
This component inherits props from the Button Icon.
You can edit the type with the primary, secondary or tertiary parameter.
Image 2.1 : Type primary
Image 2.2 : Type secondary
Image 2.3 : Type tertiary
You can edit the state with the default, pressed or disabled parameter.
Image 3.1 : State default
Image 3.2 : State pressed
Image 3.3 : State disabled
You can edit the size with the lg, md, sm or xs parameter.
Image 4.1 : Size lg
Image 4.2 : Size md
Image 4.3 : Size sm
Image 4.4 : Size xs
The DLButtonIcon component provides a flexible, customizable button with an icon-only design. It supports different sizes, styles, and states, making it suitable for a wide variety of use cases.
This component inherits props from the Button Icon.
-
-
-
You can edit the type with the .primary, .secondary or .tertiary parameter.
You can edit the size with the .xs, .sm, .md or .lg parameter.
You can edit the state state with .normal or .disabled parameter
The ButtonIcon component provides a flexible, customizable button with an icon-only design. It supports different sizes, styles, and states, making it suitable for a wide variety of use cases.
This component inherits props from the Button Icon.
-
-
-
You can edit the type with the ButtonIconType.primary, ButtonIconType.secondary or ButtonIconType.tertiary parameter.
You can edit the size with the ButtonIconSize.xs, ButtonIconSize.sm, ButtonIconSize.md or ButtonIconSize.lg parameter.
You can edit the state state with ButtonIconState.default or ButtonIconState.disabled parameter
Preview
Code
DlButtonIcon(
icon: const DlPlaceholderIcon(),
type: DlButtonType.primary,
size: DlButtonSize.lg,
onPressed: () {},
)Add this code example to your project to see how the component works.
DlButtonIcon(
icon: const DlPlaceholderIcon(),
type: DlButtonType.primary,
size: DlButtonSize.lg,
onPressed: () {},
)The DlButtonIcon component is an icon-only action button built on top of Dynamic Layer button styles, with support for variants, sizes, and interaction states. It is used when you need a compact, tap-friendly control without a text label, while keeping visual behavior consistent with DlButton.
Variants
Preview
Code
Row(
mainAxisSize: MainAxisSize.min,
children: [
DlButtonIcon(
icon: const DlPlaceholderIcon(),
type: DlButtonType.primary,
onPressed: () {},
),
const SizedBox(width: DlSpacingTokens.p_8),
DlButtonIcon(
icon: const DlPlaceholderIcon(),
type: DlButtonType.secondary,
onPressed: () {},
),
const SizedBox(width: DlSpacingTokens.p_8),
DlButtonIcon(
icon: const DlPlaceholderIcon(),
type: DlButtonType.tertiary,
onPressed: () {},
),
const SizedBox(width: DlSpacingTokens.p_8),
DlButtonIcon(
icon: const DlPlaceholderIcon(),
type: DlButtonType.ghost,
onPressed: () {},
),
],
)Size
Preview
Code
Row(
mainAxisSize: MainAxisSize.min,
children: [
DlButtonIcon(
icon: const DlPlaceholderIcon(),
size: DlButtonSize.lg,
onPressed: () {},
),
const SizedBox(width: DlSpacingTokens.p_8),
DlButtonIcon(
icon: const DlPlaceholderIcon(),
size: DlButtonSize.md,
onPressed: () {},
),
const SizedBox(width: DlSpacingTokens.p_8),
DlButtonIcon(
icon: const DlPlaceholderIcon(),
size: DlButtonSize.sm,
onPressed: () {},
),
const SizedBox(width: DlSpacingTokens.p_8),
DlButtonIcon(
icon: const DlPlaceholderIcon(),
size: DlButtonSize.xs,
onPressed: () {},
),
],
)Disabled
Preview
Code
Row(
mainAxisSize: MainAxisSize.min,
children: [
DlButtonIcon(
icon: const DlPlaceholderIcon(),
type: DlButtonType.primary,
state: DlButtonState.disabled,
onPressed: () {},
),
const SizedBox(width: DlSpacingTokens.p_8),
DlButtonIcon(
icon: const DlPlaceholderIcon(),
type: DlButtonType.secondary,
state: DlButtonState.disabled,
onPressed: () {},
),
const SizedBox(width: DlSpacingTokens.p_8),
DlButtonIcon(
icon: const DlPlaceholderIcon(),
type: DlButtonType.tertiary,
state: DlButtonState.disabled,
onPressed: () {},
),
const SizedBox(width: DlSpacingTokens.p_8),
DlButtonIcon(
icon: const DlPlaceholderIcon(),
type: DlButtonType.ghost,
state: DlButtonState.disabled,
onPressed: () {},
),
],
)You have questions or need help?
You want to try?
Save time and money?