import { Meta } from '@storybook/addon-docs'

<Meta title="Druxt/README" />

# Druxt Storybook

> Druxt + @nuxtjs/Storybook

The following documentation and stories are provided by
[DruxtJS](https://druxtjs.org) and the installed Druxt modules.

The stories are connected to your Drupal JSON:API via the DruxtClient; this
allows you to test your Druxt Wrapper components using live data.

- For more information, refer to the
[Druxt Storybook guide](https://druxtjs.org/guide/storybook).

---

## Introduction

This is a live Druxt Storybook, with autogenerated stories based on the
configuration of your Drupal backend.

---

### Autogenerated stories

Each Druxt module is able to use configuration from your Drupal backend to craft
site specific stories.

For instance, the DruxtEntity module will create a story for each Entity type,
Bundle and Display mode, while the Block module will create a story for each
backend Theme, Region and Block.

Search or navigate through the Druxt components and stories in the Storybook
sidebar.

---

### What is Druxt?

> Drupal + Nuxt = Druxt

Druxt is a framework for building Fully Decoupled Drupal and Nuxt.js
applications and sites. It allows you to leverage the content modelling and
management power of Drupal, and build elegant user experiences with Nuxt.js.

- Find out more @ [DruxtJS.org](https://druxtjs.org)

---

### Druxt components

Druxt components are provided by Druxt modules to provide targetted decoupled
Drupal functionality; A **DruxtEntity** component to render Drupal Content
entities, or a **DruxtMenu** component to render a Drupal menu, etc.

- See the core Druxt components @
  [https://druxtjs.org/api/components](https://druxtjs.org/api/components)

---

### Druxt Wrapper theme system

Druxt components that extend the **DruxtModule** use slot based wrapper system,
providing the frontend developer the ability to create theme templates per
Content type, or Display mode, and many more component options depending on the
module.

The available component options are provided via the `component.options` data
on the relevant Druxt module component.

- For more information, see the [Themeing guide](https://druxtjs.org/guide/theming)
