# Blockquote

## Usage

Import the component from its dedicated entry. The component loads its structural styles.

Import the theme in your application entry:

```ts
import '@astryx-vue/themes/neutral.css'
```

Component usage:

```vue
<script setup lang="ts">
import { Blockquote } from '@astryx-vue/core/Blockquote'
</script>

<template>
  <Blockquote cite="Steve Jobs">
    Design is not just what it looks like and feels like. Design is how it works.
  </Blockquote>
</template>
```

### Anatomy

- **Rule**: The border on the inline-start edge, drawn with --color-border-emphasized.
- **Quotation**: The quoted content, passed in the default slot. Renders inside the <blockquote> element.
- **Attribution**: The source, passed as cite. Renders as a <cite> element below the quotation.

## Best practices

| Guidance | Practices |
| --- | --- |
| Do | Use for quoted text, testimonials, or highlighted excerpts from external sources. |
| Do | Provide a cite prop when the source of the quote is known. |
| Don't | Use for callout boxes or informational notes; use Banner for those. |

## Examples

### Testimonials

Multiple quotes arranged in a card grid for a testimonials section. Combine with Card and Grid to create social-proof layouts.

```vue
<script setup lang="ts">
import { Blockquote } from '@astryx-vue/core/Blockquote'
import { Card } from '@astryx-vue/core/Card'
import { Grid, GridSpan } from '@astryx-vue/core/Grid'
</script>

<template>
  <Grid :columns="2" :gap="3" style="max-width: 600px">
    <Card :padding="4">
      <Blockquote cite="Sarah K., Lead Engineer">
        Shipping UI has never been this fast. Our team went from design to production in a single afternoon.
      </Blockquote>
    </Card>
    <Card :padding="4">
      <Blockquote cite="Marcus T., Product Designer">
        The token system means every new screen just looks right — no manual color or spacing decisions.
      </Blockquote>
    </Card>
    <GridSpan :columns="2">
      <Card :padding="4">
        <Blockquote cite="Priya L., Engineering Manager">
          Onboarding a new engineer used to take a week of design review. Now they're shipping accessible, polished components on day one.
        </Blockquote>
      </Card>
    </GridSpan>
  </Grid>
</template>
```

### With attribution

A plain quote and a quote with a cite attribution. Use cite to credit the original author or source.

```vue
<script setup lang="ts">
import { Blockquote } from '@astryx-vue/core/Blockquote'
</script>

<template>
  <Blockquote>
    Design is not just what it looks like and feels like. Design is how it works.
  </Blockquote>
  <Blockquote cite="Steve Jobs">
    The people who are crazy enough to think they can change the world are the ones who do.
  </Blockquote>
</template>
```

## Props

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `cite` | `string \| number` | — | Optional author or source rendered inside semantic `<footer>` and `<cite>` elements. |

## Slots

| Name | Description |
| --- | --- |
| `default` | The quoted content. |
| `cite` | Rich attribution content. When provided, it overrides the cite prop. |

## Native attributes

The root element is `<blockquote>`.

The root element receives:

- HTML attributes.
- `aria-*` attributes.
- `data-*` attributes.
- `class`.
- `style`.
- Native event listeners.
