Shapes & Size
Shapes and size adjustments might be the most widely used PCR features ๐ค
Shapes#
Shapes allow for control over the overall appearance of the control and can be configured vi the shape prop.
Checkbox & Radio#
Checkbox and Radio share the same shapes and there are two to choose from:
curveround
Live Editor
Result
Switch#
Switch offers three shapes that are unique to this control:
outline(default)fillslim
Live Editor
Result
Variants#
info
Applicable to Checkbox and Radio only.
Previously known as "fill modes", variants are similar to shape. The variant prop allows us to modify the inner appearance without making the control look like something else. There are two variants to choose from:
fillthick
Live Editor
Result
Size#
Out of the box, PCR offers a bigger prop to make all input controls just a tad bit larger:
Live Editor
Result
Need more control? Use the font-size CSS property!
Live Editor
Result
Current font-size: 14px