Shapes & Size
Shapes and size adjustments might be the most widely used PCR features ๐ค
#
ShapesShapes allow for control over the overall appearance of the control and can be configured vi the shape
prop.
#
Checkbox & RadioCheckbox
and Radio
share the same shapes and there are two to choose from:
curve
round
Live Editor
Result
SyntaxError: Unexpected token (1:8) 1 : return () ^
#
SwitchSwitch offers three shapes that are unique to this control:
outline
(default)fill
slim
Live Editor
Result
SyntaxError: Unexpected token (1:8) 1 : return () ^
#
Variantsinfo
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:
fill
thick
Live Editor
Result
SyntaxError: Unexpected token (1:8) 1 : return () ^
#
SizeOut of the box, PCR offers a bigger
prop to make all input controls just a tad bit larger:
Live Editor
Result
SyntaxError: Unexpected token (1:8) 1 : return () ^
Need more control? Use the font-size
CSS property!
Live Editor
Result
SyntaxError: Unexpected token (1:8) 1 : return () ^