You can edit 8 Components for free. Get premium for unlimited access.
Displays a button or a component that looks like a button.
The Button is a customizable component designed to display a mini, small, medium or large button with different styles and background colors.
This component inherits props from the Button.
-
You can edit the type with the primary, secondary, tertiary or ghost parameter.

Image 2.1 : Type primary

Image 2.2 : Type secondary

Image 2.3 : Type tertiary

Image 2.4 : Type ghost
You can edit the size with the xs, sm, md or lg parameter.

Image 3.1 : Size lg

Image 3.2 : Size md

Image 3.3 : Size sm

Image 3.4 : Size xs
You can edit the state with the default, pressed, active and disabled parameter.

Image 4.1 : State default

Image 4.2 : State pressed

Image 4.3 : State active

Image 4.4 : State disabled
You can edit the iconLeft with the true or false parameter.

Image 5.1 : iconLeft false
Image 5.2 : iconLeft true
You can edit the iconRight with the true or false parameter.

Image 6.1 : iconRight false
Image 4.2 : iconRight true
The DLButton is a highly customizable button component in SwiftUI, supporting various sizes, styles, and actions for easy integration into your app's UI.
This component inherits props from the Button.
-
-
-
-
-
You can edit the type with the .primary, .secondary, .tertiary or .ghost 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.
You can edit the icon with the "icon" parameter.
The Button is a highly customizable button component in Kotlin, supporting various sizes, styles, and actions for easy integration into your app's UI.
This component inherits props from the Button.
-
-
-
-
-
You can edit the type with the ButtonType.primary, ButtonType.secondary, ButtonType.tertiary or ButtonType.ghost parameter.
You can edit the size with the .xs, .sm, .md or .lg parameter.
You can edit the state state with ButtonState.default or ButtonState.disabled parameter.
You can edit the iconLeft and iconRight with the ButtonIcon parameter.
Preview
Code
DLButton(
type: DLButtonType.primary,
size: DLButtonSize.lg,
label: 'Button',
onPressed: () {},
);
Add this code example to your project to see how the component works.
DLButton(
type: DLButtonType.primary,
size: DLButtonSize.lg,
label: 'Button',
onPressed: () {},
);
Variants
Preview
Code
DLButton(
type: DLButtonType.primary,
size: DLButtonSize.lg,
label: 'Button',
onPressed: () {},
),
DLButton(
type: DLButtonType.secondary,
size: DLButtonSize.lg,
label: 'Button',
onPressed: () {},
),
DLButton(
type: DLButtonType.tertiary,
size: DLButtonSize.lg,
label: 'Button',
onPressed: () {},
),
DLButton(
type: DLButtonType.ghost,
size: DLButtonSize.lg,
label: 'Button',
onPressed: () {},
);
Size
Preview
Code
DLButton(
type: DLButtonType.primary,
size: DLButtonSize.lg,
label: 'Button',
onPressed: () {},
),
DLButton(
type: DLButtonType.primary,
size: DLButtonSize.md,
label: 'Button',
onPressed: () {},
),
DLButton(
type: DLButtonType.primary,
size: DLButtonSize.sm,
label: 'Button',
onPressed: () {},
),
DLButton(
type: DLButtonType.primary,
size: DLButtonSize.xs,
label: 'Button',
onPressed: () {},
);
Disabled
Preview
Code
DLButton(
type: DLButtonType.primary,
size: DLButtonSize.lg,
label: 'Button',
enabled: false,
onPressed: null,
),
DLButton(
type: DLButtonType.secondary,
size: DLButtonSize.lg,
label: 'Button',
enabled: false,
onPressed: null,
),
DLButton(
type: DLButtonType.tertiary,
size: DLButtonSize.lg,
label: 'Button',
enabled: false,
onPressed: null,
),
DLButton(
type: DLButtonType.ghost,
size: DLButtonSize.lg,
label: 'Button',
enabled: false,
onPressed: null,
);
With Icon
Preview
Code
DLButton(
type: DLButtonType.primary,
size: DLButtonSize.lg,
label: 'Button',
iconLeft: Icon(Icons.add, size: 24),
onPressed: () {},
),
DLButton(
type: DLButtonType.primary,
size: DLButtonSize.lg,
label: 'Button',
iconRight: Icon(Icons.add, size: 24),
onPressed: () {},
);You have questions or need help?
You want to try?
Save time and money?