AI Components / Feature Flags
Feature Flags
Feature flag toggles for AI capabilities with search and grouping.
ai-devops v0.5.0
Playground
Examples
Flags
<ai-feature-flag environment="production" style="max-width:450px;"></ai-feature-flag> Import
import { AiFeatureFlag } from '@cognivo/components'; // Or tree-shake: import '@cognivo/components/ai-feature-flag'; Per-component imports ship only that component (~8 kB gzip).
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
flags | {id, name, description, enabled, environment?}[] | — | Flags |
environment | string | — | Environment filter |
Events
| Event | Detail | Description |
|---|---|---|
ai-flag-toggle | {id, enabled} | Flag toggled |