Parameters
Name
Type
Description
classes
ObjectStyles to apply to the
root of the Shimmer. Available classes are root and root_[TYPE].borderRadius
string | numberBorder radius for the shimmer.
height
string | numberSets the height of the Shimmer. Numbers are in
rem units. Strings are used directly (Example: '100px').width
string | numberSets the width of the Shimmer. Numbers are in
rem units. Strings are used directly (Example: '100px').style
ObjectCSS styles to apply to the Shimmer.
type
'rectangle' | 'button' | 'checkbox' | 'radio' | 'textArea' | 'textInput'The base element shape to apply to the Shimmer.
children
nodeChildren to output within the Shimmer. Useful for setting image placeholders.
Properties
Name
Type
Description
classes
Objectis an object containing the class names for the Shimmer component.
classes.root
stringis the class for the container
classes.root_rectangle
stringis the class for the container of type rectangle
classes.root_button
stringis the class for the container of type button
classes.root_checkbox
stringis the class for the container of type checkbox
classes.root_radio
stringis the class for the container of type radio
classes.root_textArea
stringis the class for the container of type textArea
classes.root_textInput
stringis the class for the container of type textInput
borderRadius
number | stringis the border radius of the Shimmer
height
number | stringis the height of the Shimmer
width
number | stringis the width of the Shimmer
style
Objectis an object of inline styles
type
stringis the type of the Shimmer
children
nodeare the children of the Shimmer
Source Code: pwa-studio/packages/venia-ui/lib/components/Shimmer/shimmer.js