Skip to main content
Version: 1.x

Function: controlId()

controlId(id): ControlId

Create a branded ControlId from a raw string.

Parameters​

id​

string

Raw control ID string.

Returns​

ControlId

Branded control ID.

Example​

import { controlId } from '#core/types/branded.js';

const id = controlId('submitButton');