Learn more about our native MCP
Directus Logo
  • Use Cases and Features
    • Headless CMS
      Manage and deliver content with ease
    • Backend-as-a-Service
      Build and ship applications faster
    • Headless Commerce
      A single source of truth for products
    • 100+ More Use Cases
      Build anything (or everything)
    • Instant APIs
      Connect a database, get REST + GraphQL APIs
    • Granular Policy-Based Auth
      Provide secure, autonomous data access
    • Visual Automation Builder
      Automate content and data workflows with ease
    • 50+ More Features
      Get everything you need out-of-the-box
    Project Showcase
    Built With Directus

    Built With Directus

    See what everyone's been building with Directus

  • Learn More
    • Blog
      Read our latest articles and guides
    • Case Studies
      Case studies and success stories
    • Community Forum
      Questions and conversations
    • Agency Directory
      Browse our list of agency partners
    • About Us
      Learn more about Directus and the team
    • Wall of Love
      See what others are saying about us
    • Contact
      Have a general inquiry or question for us?
    • Support
      Reach out to Directus support
    Watch Directus TV
    Directus TV
    Video

    Directus TV

    Go down the rabbit hole with hours of original video content from our team.

  • Developers
  • Enterprise
  • Pricing
Book a DemoGet StartedLog In
GitHub logo34,266
Directus Marketplace
Marketplace
  1. Extensions
  2. Integrations
  3. Templates
Back to Extensions
interface

Switch Interface

Directus toggle switch interface for boolean fields.

Switch Interface

Screenshot of the Switch Interface in action

This interface displays a more traditional toggle switch for boolean fields vs the default Toggle interface.

Comparison of the Switch Interface vs the default Toggle interface

Installation

Refer to the Official Guide for details on installing the extension from the Marketplace or manually.

Usage

Within the data model settings, add the Switch Interface to your boolean field. You can customize the label, description, and icons for the switch.

Screenshot of the Switch Interface configuration

The Switch Interface can be used for any boolean field in your collection. It provides a visually appealing toggle switch with customizable icons and colors along with an option description.

@directus-labs/switch-interface

npm i @directus-labs/switch-interface
This extension is sandboxed and can be installed through the Directus Marketplace. Learn more.
Mike Elsmore
Mike Elsmore
Verified
1.0.0
Works with v10.10.0+
Updated 1 year ago
9.2 KiB (3 files)
npm
  • Directus LogoDirectus Logo

    A composable backend to build your Headless CMS, BaaS, and more. 

  • Solutions
    • Headless CMS
    • Backend-as-a-Service
    • Product Information
    • 100+ Things to Build
  • Resources
    • Documentation
    • Guides
    • Community
    • Release Notes
  • Support
    • Issue Tracker
    • Feature Requests
    • Community Chat
    • Cloud Dashboard
  • Organization
    • About
    • Careers
    • Brand Assets
    • Contact
©2026 Monospace Inc
  • Cloud Policies
  • License
  • Terms
  • Privacy