<MyComponent defaultColor>

Draws a colored box with a button that controls cycling it through a pre-defined set of colors.

Props

  • [defaultColor] (String): The color the box is initially filled with. Uses #ffffd9 by default.

Example

Using defaults
<MyComponent />
Specifying a default color
<MyComponent defaultColor="#0bb" />

results matching ""

    No results matching ""