Chip

PRO

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

Displays a chip or a component that looks like an chip.

Figma

The Chip component that can be used to display filters or categories.

1. Reference

This component inherits props from the Chip.

Prop
Type
Default
amount
true
false
false
size
sm
md
lg
lg
state
default
active
disabled
default

2. Amount

You can edit the amount with the true or false parameter

Image 2.1 : Amount false

Image 2.2 : Amount true

3. Size

You can edit the Size with the xs, md, lg paramenters.

Image 3.1 : Size lg

Image 3.2 : Size md

Image 3.3 : Size sm

4. State

You can edit the State with the default, active and disabled parameters.

Image 4.1 : State default

Image 4.2 : State active

Image 4.3 : State disabled

Jetpack Compose

The Chip component that can be used to display filters or categories.

1. Reference

This component inherits props from the Chip.

Prop
Type
Default
state
ChipState.default
ChipState.active
ChipState.disabled
ChipState.default
size
ChipSize.sm
ChipSize.md
ChipSize.lg
ChipSize.lg
title
"text"

-

count
"text"

-

2. State

You can edit the state with the ChipState.default, ChipState.active or ChipState.disabled parameter.

Chip
Chip
10
Chip
Chip
Chip(
title = "Chip",
size = ChipSize.lg,
state = ChipState.default
)

Chip(
title = "Chip",
count = 10,
size = ChipSize.lg,
state = ChipState.default
)

Chip(
title = "Chip",
size = ChipSize.lg,
state = ChipState.disabled
)

Chip(
title = "Chip",
size = ChipSize.lg,
state = ChipState.active
)

3. Size

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

Chip
Chip
Chip
Chip(
title = "Chip",
size = ChipSize.lg,
state = ChipState.default
)

Chip(
title = "Chip",
size = ChipSize.md,
state = ChipState.default
)

Chip(
title = "Chip",
size = ChipSize.sm,
state = ChipState.default
)

Preview

Default
Chip
const DlChip(
  label: 'Default',
)
Copy

Usage

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

DlChip(
    label: 'Chip',
    size: DlChipSize.lg,
    state: DlChipState.disabled
)
Copy

API Reference

DlChip is a rounded, token-driven, tappable label component with three sizes lg , md and sm and toggleable default and active behavior plus a non-interactive disabled state.

Prop
Type
Default
label
label
-
size
lg
md
sm
lg
state
defaultState
active
disabled
defaultState

Examples

Size

Chip
Chip
Chip
Chip
Chip
Chip
const Wrap(
  spacing: DlSpacingTokens.p_16,
  runSpacing: DlSpacingTokens.p_16,
  children: [
    DlChip(
      label: 'Chip',
      size: DlChipSize.lg
    ),
    DlChip(
      label: 'Chip',
      size: DlChipSize.md
    ),
    DlChip(
      label: 'Chip',
      size: DlChipSize.sm
    ),
  ],
)
Copy

Disabled

Chip
DlChip(
    label: 'Chip',
    size: DlChipSize.lg,
    state: DlChipState.disabled
)
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