Localess
Schemas

Link

Stores either an external URL or an internal content reference, with optional target.

Stores either an external URL or an internal content reference, with optional target.

Value shape

{
  "kind": "LINK",
  "type": "url",
  "target": "_blank",
  "uri": "https://example.com"
}
{
  "kind": "LINK",
  "type": "content",
  "target": "_blank",
  "uri": "019df317-9ad5-7228-a070-afc8f94a07d2"
}

type is "url" for external links and "content" for an internal slug reference. Resolve a link to a final href with the findLink helper in @localess/react.

Options

OptionDescription
NameUnique field name in the Schema. Appears in the generated model and in the API response.
Display NameLabel shown to editors in the Content Editor.
RequiredWhen set, editors cannot save the document without a value.
TranslatableWhen set, the field stores a separate value per locale.
DescriptionHelp text shown to editors under the field.
Default ValueValue applied when a document is first created.

On this page