[]previous and next page

UrlField

A URL variable; the value is the normalized href.

A URL variable; the value is the normalized href.

Import#

ts
import type { UrlField } from "@shadow-js/dusk/server";

Signature#

ts
interface UrlField extends FieldBase {
  readonly type: "url";
  readonly default?: string;
  /** Accepted schemes, with the colon. Default `["http:", "https:"]`. */
  readonly protocols?: readonly string[];
}

Members#

Name Type Description
type readonly type: "url"
default? readonly default?: string
protocols? readonly protocols?: readonly string[] Accepted schemes, with the colon. Default ["http:", "https:"].