Flagsmith Adapter
TheFlagsmithFeatureAdapter integrates Flagsmith feature flags with Vuetify Zero’s useFeatures composable.
Import
Installation
Install the Flagsmith SDK as a peer dependency:Basic Usage
With User Context
Using in Components
Feature Flags
Boolean Flags
Flags with Variations
Configuration Options
Change Detection
The adapter automatically syncs flag changes:Custom onChange Handler
Multiple Adapters
TypeScript
Flag Format
Flagsmith flags are transformed to Vuetify Zero format:Cleanup
The adapter automatically stops listening to flag changes when the app unmounts:API Reference
Constructor
Parameters
| Parameter | Type | Description |
|---|---|---|
client | IFlagsmith | Flagsmith client instance |
options | IInitConfig | Flagsmith initialization config |
Methods
| Method | Description |
|---|---|
setup(onUpdate) | Initialize adapter and register onChange handler |
dispose() | Stop listening to flag changes |
Flag Structure
See Also
- LaunchDarkly Adapter - LaunchDarkly integration
- PostHog Adapter - PostHog feature flags
- useFeatures - Feature flags composable
- Flagsmith Documentation - Official Flagsmith docs