# BlockQuote

- **Section:** Components
- **URL:** https://refast.fastapicloud.dev/docs/components/blockquote
- **Markdown:** https://refast.fastapicloud.dev/docs/components/blockquote.md
- **Source:** https://github.com/idling-mind/refast-docs/blob/main/docs/pages/components/typography/blockquote.py
- **Live examples:** the widgets on this page need a browser; open the URL above to try them.
- **Applies to:** refast 0.12.2

Styled quotation block with an optional icon, named or arbitrary color, and
muted attribution footer.

```python
from refast.components import BlockQuote

# Minimal
BlockQuote("To be or not to be.", cite="Hamlet")

# With icon and color
BlockQuote(
    "With great power comes great responsibility.",
    cite="Uncle Ben",
    color="success",
    icon="check-circle",
)

# Custom CSS color
BlockQuote(
    "Any sufficiently advanced technology is indistinguishable from magic.",
    cite="Arthur C. Clarke",
    color="oklch(70% 0.15 280)",
    icon="zap",
    icon_size=24,
)
```

Doth mother know you weareth her drapes?

## Props

| Prop | Type | Default | Description |
|------|------|---------|-------------|
| `children` | `str \| Component \| list \| None` | `None` | The quote body — accepts a string, a single component, or a list |
| `cite` | `str \| None` | `None` | Attribution text shown below the quote (e.g. author name) |
| `color` | `str` | `"default"` | Named variant **or** any CSS color (see below) |
| `icon` | `str \| None` | `None` | Lucide icon name displayed above the quote body |
| `icon_size` | `int` | `20` | Icon size in pixels |
| `id` | `str \| None` | `None` | Unique element ID |
| `class_name` | `str` | `""` | Extra Tailwind classes |
| `style` | `dict \| None` | `None` | Inline CSS overrides |

## Color Variants

Pass one of the built-in named variants to use theme-aware Tailwind classes for the
border and background:

| Variant | Border token | Background token |
|---------|--------------|------------------|
| `"default"` | `border-border` | `bg-muted/50` |
| `"secondary"` | `border-secondary` | `bg-secondary/20` |
| `"destructive"` | `border-destructive` | `bg-destructive/10` |
| `"info"` | `border-info` | `bg-info/10` |
| `"success"` | `border-success` | `bg-success/10` |
| `"warning"` | `border-warning` | `bg-warning/10` |

Any other string is treated as a **raw CSS color** applied via inline styles, with a
12 % opacity tint as the background:

```python
BlockQuote("Quote", color="#7c3aed")          # hex
BlockQuote("Quote", color="oklch(70% 0.2 240)")   # oklch
BlockQuote("Quote", color="rgb(100, 200, 50)")    # rgb
```

## Icon

Pass any name from the `Icon` component's supported Lucide icon set:

```python
BlockQuote("All good!", color="success", icon="check-circle")
BlockQuote("Warning!", color="warning", icon="alert-triangle")
BlockQuote("Error",    color="destructive", icon="x-circle")
BlockQuote("Info",     color="info",  icon="info")
```

## Children

`children` accepts the same types as other Refast container components:

```python
# Plain string
BlockQuote("Simple text quote.")

# Component child
BlockQuote(Paragraph("Rich paragraph content."), cite="Author")

# List of children
BlockQuote(
    ["First part of the quote. ", Text("Highlighted part.", class_name="font-bold")],
    cite="Mixed children example",
)
```

---

Part of the Refast documentation: [all pages](https://refast.fastapicloud.dev/llms.txt), [everything on one page](https://refast.fastapicloud.dev/llms-full.txt), [search](https://refast.fastapicloud.dev/api/search?q=save_prop).
