F

ColorRow

A settings row that shows a color swatch, opens Discord's color picker when pressed and offers a reset back to the default. Discord's picker reports its current color when dismissed, so a pick matching the shown color is ignored.

function ColorRow(props: ColorRowProps): ReactElement

Parameters

NameTypeDescription
propsColorRowProps

The row's label, chosen color, the default it falls back to and the change handler.

Returns

ReactElement

The row.