Documentation Index
Fetch the complete documentation index at: https://mintlify.com/directus/directus/llms.txt
Use this file to discover all available pages before exploring further.
Displays are read-only representations of field values in the admin app.
Overview
Directus includes 21 built-in displays for different data types like text, images, dates, ratings, and more.
Creating a Display
npm init directus-extension
# Select "display" as the extension type
Display Structure
import { defineDisplay } from '@directus/extensions-sdk';
export default defineDisplay({
id: 'my-display',
name: 'My Display',
icon: 'label',
description: 'A custom display',
component: DisplayComponent,
options: [],
types: ['string'],
});
Component
<template>
<div class="my-display">
{{ formattedValue }}
</div>
</template>
<script>
export default {
props: {
value: {
type: String,
default: null,
},
},
computed: {
formattedValue() {
return this.value?.toUpperCase() || '-';
},
},
};
</script>
Next Steps
Interfaces
Create input interfaces
Panels
Create dashboard panels