Chip Appearance
The chip provides predefined appearance options such as different sizes, border radiuses, fill modes and theme colors.
The following example demonstrates all available appearance options of the Chip in action.
Size
The Chip allows you to set different height
and padding
. To achieve this utilize the size
property. It accepts values of type ChipSize
or none
.
The size
option supports the following values:
small
—Sets thepadding
to3px
.medium
(Default)—Sets thepadding
to4px
.large
—Sets thepadding
to5px
.none
—The none option removes the built-in sizing. Allows for custompadding
.
The following example demonstrates how to define the size of the Chip.
Roundness
The Chip enables you to apply different border radius
to the component through the rounded
property. It accepts values of type ChipRounded
or none
.
The rounded
option supports the following values:
small
—Sets theborder radius
to1px
.medium
(Default)—Sets theborder radius
to2px
.large
—Sets theborder radius
to4px
.full
—Sets theborder radius
to9999px
.nonenone
—The nonenone option removes the built-in roundness. Allows for customborder radius
.
The following example demonstrates how to define the border radius of the Chip.
Fill Mode
The Chip allows you to set different fill modes by using the fillMode
property. It accepts values of type ChipFillMode
or none
.
The fillMode
option supports the following values:
solid
(Default)—Sets abackground
color andsolid borders
.outline
—Sets atransparent background
andsolid borders
.none
—The none option removes the built-in fill mode styles. Allows for custombackground
andborder
styles.
The following example demonstrates how to define the fill mode of the Chip.
Theme Colors
The Chip allows you to set different theme colors by using the themeColor
property. It accepts values of type ChipThemeColor
or none
.
The themeColor
option supports the following values:
base
(Default)—Applies coloring based on thebase
theme color.info
—Applies coloring based on theinfo
theme color.success
—Applies coloring based on thesuccess
theme color.warning
—Applies coloring based on thewarning
theme color.error
—Applies coloring based on theerror
theme color.none
—The none option removes the built-in theme color. Allows for a custom color.
The following example demonstrates how to define the theme color of the Chip.