<BlokkliProvider> is the root component that establishes the editing context for a content entity. It tells blökkli which entity is being displayed, whether the current user is allowed to edit it, and (optionally) which language is active. All <BlokkliField> components must be descendants of a provider — they rely on the context it provides to register themselves with the editor.
You typically place one <BlokkliProvider> per page, wrapping all editable regions.
Basic Usage
Props
Describes the content entity this provider wraps. blökkli uses these values to load the correct editor state, persist changes through your adapter, and scope field configurations. The object must include all three of the following properties:
The entity type identifier — for example
'node', 'page', or 'product'. This should match the entity type strings your adapter and getFieldConfig() use.The entity bundle identifier — for example
'article', 'landing_page', or 'blog_post'. Used together with entity_type to look up field configurations.The unique identifier for this specific entity instance. blökkli appends this to the
?blokkliEditing query parameter to activate the editor for the right entity. Use a UUID or any other stable unique string.Whether the current user has permission to edit this entity. When
false, blökkli never activates the editor UI, even if the ?blokkliEditing query parameter is present in the URL. When true, visiting the page with the correct query parameter opens the editor.Derive this value from your application’s own authentication and authorisation logic.The BCP 47 language code for the content currently being displayed — for example
'en', 'de', or 'fr-CH'. Pass this when your site uses blökkli’s translations feature so the editor can associate changes with the correct language variant.Activating the Editor
Withcan-edit set to true, navigate to your page URL and append ?blokkliEditing={entity_uuid}:
entity.entity_uuid, and activates the full editor overlay.
Set can-edit to true
Make sure your auth logic resolves
can-edit to true for the current user. This is the gating condition — without it the editor never loads regardless of the URL.Navigate to the page with the query parameter
Append
?blokkliEditing={entity_uuid} to the page URL. You can add an “Edit page” button to your site’s navigation toolbar that constructs this URL automatically.Nesting Providers
You can nest<BlokkliProvider> components for cases where blocks themselves contain editable sub-entities — for example, a reusable “Teaser” content item rendered inside a block, where the teaser has its own independent block fields:
Nesting providers is an advanced pattern. For most sites with a single editable entity per page, one top-level provider wrapping all fields is all you need.
Usage with Nuxt <NuxtPage>
If you’re wrapping entire page content, place <BlokkliProvider> inside your page component rather than in a layout. This ensures the provider receives the correct per-page entity data:

