moderator-toolbox-nxg-for-reddit / shared/controls/MapInput

shared/controls/MapInput

Functions

MapInput()

MapInput(props): Element

Defined in: extension/data/shared/controls/MapInput.tsx:16

Renders a table of key/value text inputs with add and remove row buttons. Keys and values are stored as encodeURIComponent-encoded strings in the onChange output.

Parameters

props

Component properties.

labels

[string, string]

onChange

(value) => void

value

Record<string, string>

Returns

Element