Appearance
The Chip provides predefined appearance options such as different sizes, border radiuses, fill modes, and theme colors.
For a live example, refer to the Appearance Demo of the Chip.
Options
The Chip supports the following styling options:
Size—Configures the overall size of the component.ThemeColor—Configures what color will be applied to the component.FillMode—Configures how the color is applied to the component.Rounded—Configures the border radius of the component.
Size
The Size option controls how big or small the rendered Chip looks.
@(Html.Kendo().Chip()
.Name("chip")
.Size(ComponentSize.Medium)
.Label("Chip")
)
The Size option accepts the following values:
ComponentSize.Small—Small size.ComponentSize.Medium—Medium size.ComponentSize.Large—Large size.
When not explicitly set, the applied theme controls the default size.
The
ComponentSize.Nonevalue is deprecated. Use custom CSS instead.
Fill Mode
The FillMode option controls the way the color is applied to the rendered div.
@(Html.Kendo().Chip()
.Name("chip")
.FillMode(ChipFillMode.Solid)
.Label("Chip")
)
The FillMode option accepts the following values:
ChipFillMode.SolidChipFillMode.Outline
When not explicitly set, the applied theme controls the default fill mode.
Theme Color
The ThemeColor option controls the color that will be applied to the rendered Chip.
@(Html.Kendo().Chip()
.Name("chip")
.ThemeColor(ChipThemeColor.Base)
.Label("Chip")
)
The ThemeColor option accepts the following values:
ChipThemeColor.BaseChipThemeColor.InfoChipThemeColor.SuccessChipThemeColor.WarningChipThemeColor.Error
When not explicitly set, the applied theme controls the default theme color.
Border Radius
The Rounded option controls how much border radius is applied to the rendered Chip.
@(Html.Kendo().Chip()
.Name("chip")
.Rounded(Rounded.Medium)
.Label("Chip")
)
The Rounded option accepts the following values:
Rounded.Small—Small form.Rounded.Medium—Medium form.Rounded.Large—Large form.
When not explicitly set, the applied theme controls the default border radius.
The
Rounded.Nonevalue is deprecated. Use custom CSS instead.
Rendering
To review the rendering of the component, refer to the HTML specifications in the Kendo UI Themes Monorepo. The tests folder of the repository contains the rendering for all flavors of the components, providing a clear reference for how their elements are structured. The rendering information can help you customize a component's appearance and behavior by applying custom CSS or JavaScript to suit specific design or functional requirements.