fun-chip

Chips are used for making selections or filtering content. They have two modes:

Single-select

In this mode chips behave like radio buttons. Only one chip can be selected at a time.

This pattern is useful when users must choose one item from a set, for instance in a wizard.

For use in forms consider using a standard radio button instead.

Multi-select

In this mode chips behave like checkboxes. Multiple chips can be selected.

This can be useful for adding filters to lists or when users may choose several items in a wizard.

For use in forms consider using a standard checkbox instead.

Chips can be used to make selections, filter content. They can act like either checkbox or radio inputs.

They should usually be presented in a group of at least two, not by themselves.

The chip can be tabbed to and selected using the space bar.

I’m a chip!

Examples

Specifications

Properties

PropertyAttributeRequiredDescriptionTypeDefault
disableddisabledfalseIf disabled, this chip cannot be interacted withbooleanfalse
namenamefalseName of the chip. Included in events.string
selectedselectedfalseIs this item selected?booleanfalse
selectionModeselection-modefalseSelection mode of this chip."multi" | "none" | "single"'single'
valuevaluefalseValue of the chip. Included in events.string

Events

NameDescription
funChangeEmitted when the chip is selected / un-selected.

Slots

NameDescription
defaultthe content of the chip

Dependencies

Depends on

This documentation page generated from the source at fun-chip.tsx

Search Gunnel

Powered byAlgolia