title | page_title | description | previous_url | slug | position |
---|---|---|---|---|---|
Appearance |
jQuery Button Documentation - Appearance |
Learn how to apply different styling options to the Button widget. |
/styles-and-layout/styling-components/button-styling |
button_styling_widget |
3 |
In this article, you will find information about the styling options and rendering of the Kendo UI Button.
For a live example, visit the Appearance Demo of the Button.
The Kendo UI Button 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.
The size
option controls how big or small the rendered button
looks. The structure of the class is k-button-{size}
.
The following values are available for the size
option:
sm
—small sizemd
—medium sizelg
—large sizenone
—unset
The default size value is medium
and is applied to the button element through the k-button-md
class.
<button class="k-button k-button-md" >
</button>
The fillMode
option controls the way the color is applied to the rendered button
. The structure of the class is k-button-{fillMode}
.
The following values are available for the fillMode
option:
solid
outline
flat
link
clear
none
The default fillMode value is solid
and is applied to the button element through the k-button-solid
class.
<button class="k-button k-button-solid" >
</button>
The themeColor
option controls the color that will be applied to the rendered Button. As applying themeColor
is closely related to the fillMode
, the structure of the class name for the themeColor
is composite - k-button-{fillMode}-{themeColor}
.
The following values are available for the themeColor
option:
base
primary
secondary
tertiary
info
success
warning
error
dark
light
inverse
none
The default themeColor
value is base
. A button with default fillMode
and themeColor
will have k-button-solid-base
class applied.
<!-- Button with default fillMode and themeColor -->
<button class="k-button k-button-solid k-button-solid-base" >
</button>
<!-- Button with default fillMode and 'primary' themeColor -->
<button class="k-button k-button-solid k-button-solid-primary" >
</button>
<!-- Button with `flat` fillMode and `primary` themeColor -->
<button class="k-button k-button-flat k-button-flat-primary" >
</button>
The rounded
option controls the extent to which border radius is applied to the rendered button
. The structure of the class is k-rounded-{size}
.
The following values are available for the rounded
option:
sm
—small sizemd
—medium sizelg
—large sizecircle
pill
none
—unset
The default rounded value is medium
and is applied to the button element through the k-rounded-md
class.
<button class="k-button k-rounded-md" >
</button>
- [Components Appearance Overview]({% slug components_rendering_overview %})
- Appearance Demo of the Button
- JavaScript API Reference of the Button