Skip to content

Out-of-the-box decoupled Drupal sites with DruxtSite, wiring layout, blocks, menus and content together from one Nuxt module.

Site mixins

View source on GitHub

DruxtSiteMixin : object

Vue.js Mixin.

Registers props for use by Druxt slot theme components.

A mixin adds reusable props and logic to a Vue component, similar to a PHP trait in Drupal development.

See

Example

<template>
  <div>
    <slot v-for="region of regions" :key="region" :name="region" />
  </div>
</template>

<script>
import { DruxtSiteMixin } from 'druxt-site'

export default {
  mixins: [DruxtSiteMixin],
}
</script>