Chip API
API documentation for Chip component
ChipRoot#
Props#
Defines valid properties in Chip component.
State#
Defines valid state in Chip component.
Exposes#
Defines the methods and properties exposed by Chip component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of Chip component.
Types#
Instance
Instance of Chip component.
| values |
|---|
| ComponentInstance<ChipRootProps, ChipRootState, ChipRootExposes> |
ChipIcon#
Props#
Defines valid properties in ChipIcon component.
State#
Exposes#
Defines the methods and properties exposed by ChipIcon component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of ChipIcon component.
| name | type | default | description |
|---|---|---|---|
| root | ChipIconPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of ChipIcon component.
| values |
|---|
| ComponentInstance<ChipIconProps, ChipIconState, ChipIconExposes> |
ChipLabel#
Props#
Defines valid properties in ChipLabel component.
Exposes#
Defines the methods and properties exposed by ChipLabel component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of ChipLabel component.
| name | type | default | description |
|---|---|---|---|
| root | ChipLabelPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of ChipLabel component.
| values |
|---|
| ComponentInstance<ChipLabelProps, ChipLabelState, ChipLabelExposes> |
ChipImage#
Props#
Defines valid properties in ChipImage component.
Exposes#
Defines the methods and properties exposed by ChipImage component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of ChipImage component.
| name | type | default | description |
|---|---|---|---|
| root | ChipImagePassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of ChipImage component.
| values |
|---|
| ComponentInstance<ChipImageProps, ChipImageState, ChipImageExposes> |
ChipRemoveIcon#
Props#
Defines valid properties in ChipRemoveIcon component.
Exposes#
Defines the methods and properties exposed by ChipRemoveIcon component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of ChipRemoveIcon component.
| name | type | default | description |
|---|---|---|---|
| root | ChipRemoveIconPassThroughType<HTMLAttributes<HTMLSpanElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of ChipRemoveIcon component.
| values |
|---|
| ComponentInstance<ChipRemoveIconProps, ChipRemoveIconState, ChipRemoveIconExposes> |
useChip#
Props#
Defines valid properties in useChip.
| name | type | default | description |
|---|---|---|---|
| onRemove | (event: useChipRemoveEvent) => void | null | Callback fired when the chip is removed. |
State#
Defines valid state in useChip.
Exposes#
Defines the methods and properties exposed by useChip.
Events#
useChipRemoveEvent
Event fired when the chip's remove icon is clicked.
Types#
Instance
Instance of useChip headless.
| values |
|---|
| HeadlessInstance<useChipProps, useChipState, useChipExposes> |