Skip to main content

Color Ring



  render(<ColorRing
  visible={true}
  height="80"
  width="80"
  ariaLabel="color-ring-loading"
  wrapperStyle={{}}
  wrapperClass="color-ring-wrapper"
  colors={['#e15b64', '#f47e60', '#f8b26a', '#abbd81', '#849b87']}
  />)


Props

NameTypeDefaultDescription
ariaLabelstringcolor-ring-loadingSpecifies the Aria label of the color-ring. This label will be applied to the aria-label attribute in the wrapper element.
colorsarray[ "#e15b64", "#f47e60", "#f8b26a", "#abbd81", "#849b87" ]Array of colors to be used in the ring
heightnumber | string80Specifies the height of the color-ring SVG. For additional customization, employ the wrapper className.
visiblebooleantrueControls the visibility of the color-ring. If set to false, the color-ring will not be rendered.
widthnumber | string80Specifies the width of the color-ring SVG. For further customization, utilize the wrapper className.
wrapperClassstringundefinedAssigns a className to the wrapper for custom styling, overriding the default style.
wrapperStyleobject{}Applies styles to the wrapper. It should be a valid CSS object and can be used for custom styling, overriding the default style.

More example: