F
ColorRow
A settings row that shows a color swatch, opens Discord's color picker when pressed, takes a typed hex code and offers a reset back to the default. A typed code is saved even when it matches the default, which the picker cannot do: Discord's picker reports its current color when it is dismissed, so a pick that matches the color already shown is ignored.
function ColorRow(props: ColorRowProps): ReactElementParameters
| Name | Type | Description |
|---|---|---|
| props | ColorRowProps | The row's label, chosen color, the default it falls back to and the change handler. |
Returns
ReactElementThe row.