Inline add

An inline add is one labelled input and its button on a single row, for adding an item to a list: a domain, a page, a key label. Enter submits.

Previewapps/web/components/ui/KbInlineAdd.tsx

Add to a list

Use *.acme.com to allow every subdomain.
Show code
<KbInlineAdd label="Allowed domain" placeholder="acme.com" value={v} onChange={setV} onSubmit={add} submitLabel="Add domain" hint="Use *.acme.com for every subdomain." />