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:
smallmedium(Default)largenone—Removes the built-in sizing styles, allowing you to fully customize thepadding.
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 radiusto1px.medium(Default)—Sets theborder radiusto2px.large—Sets theborder radiusto4px.full—Sets theborder radiusto9999px.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 abackgroundcolor andsolid borders.outline—Sets atransparent backgroundandsolid borders.none—The none option removes the built-in fill mode styles. Allows for custombackgroundandborderstyles.
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 thebasetheme color.info—Applies coloring based on theinfotheme color.success—Applies coloring based on thesuccesstheme color.warning—Applies coloring based on thewarningtheme color.error—Applies coloring based on theerrortheme 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.