<!--
  GENERATED FILE - do not edit by hand.
  Source of truth: src/components/mds-quote/ in the magma monorepo (usage/*.md and the
  component's JSDoc). Regenerated on every stencil build (scripts/component-docs.ts).
-->

# mds-quote

> `@maggioli-design-system/magma` 2.15.0. Shadow DOM: style it only through the public CSS custom properties and the parts below.

The `<mds-quote>` web component is the Magma Design System primitive for rendering a stylized blockquote: it wraps quoted text in decorative typographic quotation marks (`❝ ... ❞`) and exposes an optional attribution slot, replacing a hand-styled `<blockquote>` + citation markup.

#### Semantic Behavior

- **Default slot is the quote body**: the unnamed slot holds the quoted text (string, HTML, or components) and is wrapped between the opening `❝` and closing `❞` glyphs.
- **`author` named slot**: holds the attribution (text, HTML, or components) and renders directly beneath the quote body.
- **Selection semantics**: selecting the quote body selects the whole quotation, while the decorative quote-mark glyphs stay out of any copied text.
- **Heading semantics vs. visual size are decoupled**: the rendered tag and the applied typography are driven by two independent props, so the component can carry the correct document outline level without forcing a matching visual scale.

#### Properties & Visual Configurations

- **`tag`** sets the actual HTML heading element emitted for the quote body (`h1`-`h6`); pick the value that reflects the quote's real position in the document outline, independent of how large it should look.
- **`typography`** sets the visual type scale applied to both the quote body and the decorative marks; choose it for visual weight, since it can differ from `tag`. Beyond the heading scales it also accepts `'action'` for cases where the quote should adopt the action type style rather than a heading scale.

#### Notes

`<mds-quote>` is a purely presentational component: it has no `variant` / `tone` ladder, no state props, no events, and no form association. The shared system rules live in [`agents/conventions.md`](../../../../agents/conventions.md).

## Read next

- [`examples.md`](examples.md) - correct usage, from the most common case
- [`mistakes.md`](mistakes.md) - the wrong forms, each with the right one
- [Storybook](https://magma-design-system.github.io/magma/storybook/?path=/docs/ui-quote--docs) - the live examples, in the published Storybook of `main`
- [`conventions.md`](../../../../agents/conventions.md), [`variants.md`](../../../../agents/variants.md), [`mistakes.md`](../../../../agents/mistakes.md) - the rules shared by every component

## Props

| Prop | Attribute | Type | Default | Description |
| --- | --- | --- | --- | --- |
| `tag` | `tag` | `"h1" \| "h2" \| "h3" \| "h4" \| "h5" \| "h6"` | `'h3'` | Specifies the tag the element |
| `typography` | `typography` | `"action" \| "h1" \| "h2" \| "h3" \| "h4" \| "h5" \| "h6"` | `'h3'` | Specifies the font typography of the element |

## Slots

| Slot | Description |
| --- | --- |
| (default) | Add `text string`, `HTML elements` or `components` to this slot. |
| `author` | Add `text string`, `HTML elements` or `components` to this slot. |

## Dependencies

Uses: `mds-text`.
