Dyrected
Model ContentFields

Icon

A field that stores the name of a Lucide icon as a string.

The icon field stores the name of a Lucide icon as a string, so editors can pick an icon for a menu item, a feature card, or a category. Because the value is just the icon's name, render it on your frontend with the DyrectedIcon component, which resolves the name to a Lucide icon and takes a fallback for names that disappear when you upgrade the icon library.

defineIconField({ name: 'icon', label: 'Icon' })

Generated reference

The contract below is generated from the public @dyrected/core exports by @dyrected/knowledge, so it stays in sync with the package. See Fields for the shared field options every type accepts.

IconField

Exported type from @dyrected/core.

export type IconField = TypedField<"icon", string, IconFieldAdmin> &
  CharacterLimitFieldConfig;

IconFieldAdmin

Exported type from @dyrected/core.

export type IconFieldAdmin = CharacterLimitFieldAdmin;

On this page

Dyrected| Cloud

Get your backend ready in minutes

Use a managed database, storage, APIs, and admin dashboard without setting up the infrastructure yourself.

Set Up My Backend