Skip to main content
Interfaces are the input components users interact with when editing field values.

Overview

Directus includes 45+ built-in interfaces like text inputs, dropdowns, WYSIWYG editors, and more. You can create custom interfaces for specialized input types.

Creating an Interface

Scaffold a new interface:

Interface Structure

Component

The Vue component receives the value and emits updates:

Interface Properties

string
required
Unique identifier for the interface
string
required
Human-readable name
string
required
Material icon name
Component
required
Vue component for the interface
string[]
required
Compatible field types (string, integer, json, etc.)
Field[]
Configuration options for the interface
boolean
Whether this interface works with relational fields

Built-in Interfaces

Directus includes interfaces for:
  • Text and WYSIWYG editors
  • Dropdowns and checkboxes
  • Date and time pickers
  • File and image uploads
  • Relational field selectors
  • JSON and code editors
  • Map and location pickers
  • And many more…

Next Steps

Displays

Create display components

Layouts

Create layout views