X Enterprises
nuxt-x-app-admin

Feature Flags

Feature flag list with search, an inline enable toggle, and row actions for creating, editing, and deleting flags.

Feature Flags

Feature flag list with search, an inline enable toggle, and row actions for creating, editing, and deleting flags.

Components

<XAdminFeatureFlags />

Props, events, and behaviour reflect the actual <script setup> of XAdmin/FeatureFlags/index.vue in @xenterprises/nuxt-x-app-admin.

<XAdminFeatureFlags
  endpoint="admin/feature-flags"
  @create="openEditor()"
  @edit="openEditor($event)"
  @delete="confirmDelete($event)"
/>

Props

PropTypeDefaultDescription
endpointString'admin/feature-flags'API endpoint base passed to useXAdminFeatureFlags.
searchableBooleantrueShow the search toolbar (bound to the crud list's search ref).

Emits

EventPayloadDescription
create"New Flag" action clicked.
editvariesEdit action for a flag row.
deletevariesDelete action for a flag row.
row-clickvariesA flag table row was clicked.

Slots

SlotDescription
toolbar-actionsExtra actions rendered inside the table toolbar.

Data is fetched through useXAdminFeatureFlags (a useXCrud v2 list instance) — toggling a switch calls toggleFlag and refreshes the list.


AI Context

component: XAdminFeatureFlags
package: "@xenterprises/nuxt-x-app-admin"
category: Feature Flags
source: app/components/XAdmin/FeatureFlags/index.vue
use-when: Feature flag list with search, an inline enable toggle, and row actions for creating, editing, and deleting flags.
Copyright © 2026