Chip

Chips display user selections or search terms

Component checklist

Flutter

Is new design vision part implemented using new tokens?

Up to date

Resources

 

Examples

Feedback/Chip


                                                        
                                                        
                                                            OptimusChip(
                                                              isEnabled: true,
                                                              onRemoved: () {},
                                                              hasError: false,
                                                              child: Text('Chip'),
                                                            );
                                                        
                                                            

OptimusChip Example

API

Name

Description

Type

Default

child

The child of the Chip. Typically the Text.

Widget

 

onRemoved

The callback is to be called after the Chip is removed.

VoidCallback?

 

onTap

The callback is to be called after tapping on the Chip.

VoidCallback?

 

hasError

Whether the Chip has an error.

bool

false

isEnabled

Whether the Chip is enabled.

bool

true