Button Loading

PRO

You can edit 8 Components for free. Get premium for unlimited access.

Displays a button or a component that looks like a button.

Figma

The Button Loading is a button component that is used to bridge loading times and still provide feedback.

1. Reference

This component inherits props from the Button Loading.

Prop
Type
Default
type
primary
secondary
tertiary
ghost
primary
size
xs
sm
md
lg
lg

2. Type

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

3. Size

You can edit the size with the lg, md, sm or xs parameter.

Image 3.1 : Size lg

Image 3.2 : Size md

Image 3.3 : Size sm

Image 3.4 : Size xs

Jetpack Compose

This component is on the roadmap and in Progress This means that it is currently being edited and will be published in the next few weeks/months. Check back often to stay informed about the latest updates.

🚧

Preview

DlButtonLoading(
    type: DlButtonType.primary,
    size: DlButtonSize.lg,
)
Copy

Usage

Add this code example to your project to see how the component works.

DlButtonLoading(
    type: DlButtonType.primary,
    size: DlButtonSize.lg,
)
Copy

API Reference

DlButtonLoading is a non-interactive loading-only button that keeps the standard button shape/size/type styling while replacing text and icons with animated loading dots.

Prop
Type
Default
type
primary
secondary
tertiary
ghost
primary
size
lg
md
sm
xs
lg
fullWidth
bool
false
stepDuration
Duration
Duration(milliseconds: 300)

Examples

Variants

Column(
  crossAxisAlignment: CrossAxisAlignment.start,
  children: const [
    DlButtonLoading(
      type: DlButtonType.primary,
    ),
    SizedBox(height: 16),
    DlButtonLoading(
      type: DlButtonType.secondary,
    ),
    DlButtonLoading(
      type: DlButtonType.tertiary,
    ),
    SizedBox(height: 16),
    DlButtonLoading(
      type: DlButtonType.ghost,
    ),
  ],
)
Copy

Size

Column(
  crossAxisAlignment: CrossAxisAlignment.start,
  children: const [
    DlButtonLoading(
      type: DlButtonType.primary,
      size: DlButtonSize.lg,
    ),
    SizedBox(height: 12),
    DlButtonLoading(
      type: DlButtonType.primary,
      size: DlButtonSize.md,
    ),
    SizedBox(height: 12),
    DlButtonLoading(
      type: DlButtonType.primary,
      size: DlButtonSize.sm,
    ),
    SizedBox(height: 12),
    DlButtonLoading(
      type: DlButtonType.primary,
      size: DlButtonSize.xs,
    ),
  ],
)
Copy

Discover more content

You have questions or need help?

E-Mail

You want to try?

Test for free

Save time and money?

Get Pro Version