ColorPicker Appearance
The ColorPicker provides predefined appearance options such as different sizes, border radiuses and fill modes.
The following example demonstrates all available appearance options of the ColorPicker in action.
Size
The ColorPicker allows you to set different padding
to its internal elements. To achieve this utilize the size
property. It accepts values of type InputSize
or none
.
The size
option supports the following values:
small
—Sets thepadding
of the ColorPicker internal elements to2px
.medium
(default)—Sets thepadding
of the ColorPicker internal elements to4px
.large
—Sets thepadding
of the ColorPicker internal elements to6px
.none
—The none option removes the built-in sizing of the ColorPicker. Allows for custom padding.
The following example demonstrates how to define the size of the ColorPicker.
Roundness
The ColorPicker enables you to apply different border radius
to the component through the rounded
property. It accepts values of type InputRounded
or none
.
The rounded
option supports the following values:
small
—Sets theborder radius
of the ColorPicker to1px
.medium
(default)—Sets theborder radius
of the ColorPicker to2px
.large
—Sets theborder radius
of the ColorPicker to4px
.full
—Sets theborder radius
of the ColorPicker track to9999px
.none
—The none option removes the built-in roundness of the ColorPicker. Allows for customborder radius
.
The following example demonstrates how to define the border radius of the ColorPicker.
Fill Mode
The ColorPicker allows you to set different fill modes by using the fillMode
property. It accepts values of type InputFillMode
or none
.
The fillMode
option supports the following values:
flat
—Sets atransparent background
andsolid bottom border
.solid
(default)—Applies abackground
color andsolid borders
.outline
—Sets atransparent background
andsolid borders
.none
—The none option removes the built-in fill mode styles of the ColorPicker. Allows for custombackground
andborder
styles.
The following example demonstrates how to define the fill mode of the ColorPicker.