Prose Components

A showcase of all shadcn-docs prose components.

Heading

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6
[Link](/getting-started/introduction)

Blockquote

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Code Block

export default () => {
  console.log('Code block');
};
```ts
export default () => {
  console.log('Code block');
};
```

With Title

nuxt.config.ts
export default defineNuxtConfig({
  // My Nuxt config
});
```ts [nuxt.config.ts]
export default defineNuxtConfig({
  // My Nuxt config
});
```

Highlight Lines

export default () => {
  console.log('Code block');
};
```ts{2}
export default () => {
  console.log('Code block');
};
```

Line Numbers

// line-numbers is enabled
const line2 = 'This is line 2';
const line3 = 'This is line 3';
```ts{1} line-numbers
// line-numbers is enabled
const line2 = 'This is line 2';
const line3 = 'This is line 3';
```

Fixed Height

const parsedMeta = computed(() => {
  const split = meta?.split(' ') ?? [];
  const params = new Map<string, string | undefined>();

  for (const param of split) {
    const [key, val] = param.split('=');
    params.set(key, val);
  }

  return params;
});
```ts height=150
const parsedMeta = computed(() => {
  const split = meta?.split(' ') ?? [];
  const params = new Map<string, string | undefined>();

  for (const param of split) {
    const [key, val] = param.split('=');
    params.set(key, val);
  }

  return params;
});
```

Collapse Code

const parsedMeta = computed(() => {
  const split = meta?.split(' ') ?? [];
  const params = new Map<string, string | undefined>();

  for (const param of split) {
    const [key, val] = param.split('=');
    params.set(key, val);
  }

  return params;
});
```ts height=150 collapse
const parsedMeta = computed(() => {
  const split = meta?.split(' ') ?? [];
  const params = new Map<string, string | undefined>();

  for (const param of split) {
    const [key, val] = param.split('=');
    params.set(key, val);
  }

  return params;
});
```

Custom Icon

Custom Icon
// line-numbers is enabled
const line2 = 'This is line 2';
const line3 = 'This is line 3';
```ts [Custom Icon] icon=lucide:code-xml line-numbers
// line-numbers is enabled
const line2 = 'This is line 2';
const line3 = 'This is line 3';
```

Inline Code

code inline

const codeInline: string = 'highlighted code inline'

`code inline`

`const codeInline: string = 'highlighted code inline'`{lang="ts"}

Horizontal Rule

Before


After

Before

---

After

Image

Photo by Drew Beamer

![Photo by Drew Beamer](https://images.unsplash.com/photo-1588345921523-c2dcdb7f1dcd?w=800&dpr=2&q=80)

Unordered List

  • Foo
  • Bar
  • Baz
- Foo
- Bar
- Baz

Ordered List

  1. Foo
  2. Bar
  3. Baz
1. Foo
2. Bar
3. Baz

Paragraph

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Strong

Just a strong paragraph.

**Just a strong paragraph.**

Italic

Just an italic paragraph.

_Just an italic paragraph._

Table

KeyTypeDescription
1WonderfulTable with some long code snippet example
2WonderfulData
3WonderfulWebsite
| Key | Type      | Description                                 |
| --- | --------- | ------------------------------------------- |
| 1   | Wonderful | Table with `some long code snippet example` |
| 2   | Wonderful | Data                                        |
| 3   | Wonderful | Website                                     |

Overview

The Joke Tax Chronicles

Once upon a time, in a far-off land, there was a very lazy king who spent all day lounging on his throne. One day, his advisors came to him with a problem: the kingdom was running out of money.

The King's Plan

The king thought long and hard, and finally came up with a brilliant plan: he would tax the jokes in the kingdom.

"After all," he said, "everyone enjoys a good joke, so it's only fair that they should pay for the privilege."

The Joke Tax

The king's subjects were not amused. They grumbled and complained, but the king was firm:

  • 1st level of puns: 5 gold coins
  • 2nd level of jokes: 10 gold coins
  • 3rd level of one-liners : 20 gold coins

As a result, people stopped telling jokes, and the kingdom fell into a gloom. But there was one person who refused to let the king's foolishness get him down: a court jester named Jokester.

Jokester's Revolt

Jokester began sneaking into the castle in the middle of the night and leaving jokes all over the place: under the king's pillow, in his soup, even in the royal toilet. The king was furious, but he couldn't seem to stop Jokester.

And then, one day, the people of the kingdom discovered that the jokes left by Jokester were so funny that they couldn't help but laugh. And once they started laughing, they couldn't stop.

The People's Rebellion

The people of the kingdom, feeling uplifted by the laughter, started to tell jokes and puns again, and soon the entire kingdom was in on the joke.

King's TreasuryPeople's happiness
EmptyOverflowing
ModestSatisfied
FullEcstatic

The king, seeing how much happier his subjects were, realized the error of his ways and repealed the joke tax. Jokester was declared a hero, and the kingdom lived happily ever after.

The moral of the story is: never underestimate the power of a good laugh and always be careful of bad ideas.

# The Joke Tax Chronicles

Once upon a time, in a far-off land, there was a very lazy king who spent all day lounging on his throne. One day, his advisors came to him with a problem: the kingdom was running out of money.

## The King's Plan

The king thought long and hard, and finally came up with [a brilliant plan](#): he would tax the jokes in the kingdom.

> "After all," he said, "everyone enjoys a good joke, so it's only fair that they should pay for the privilege."

### The Joke Tax

The king's subjects were not amused. They grumbled and complained, but the king was firm:

- 1st level of puns: 5 gold coins
- 2nd level of jokes: 10 gold coins
- 3rd level of one-liners : 20 gold coins

As a result, people stopped telling jokes, and the kingdom fell into a gloom. But there was one person who refused to let the king's foolishness get him down: a court jester named Jokester.

### Jokester's Revolt

Jokester began sneaking into the castle in the middle of the night and leaving jokes all over the place: under the king's pillow, in his soup, even in the royal toilet. The king was furious, but he couldn't seem to stop Jokester.

And then, one day, the people of the kingdom discovered that the jokes left by Jokester were so funny that they couldn't help but laugh. And once they started laughing, they couldn't stop.

### The People's Rebellion

The people of the kingdom, feeling uplifted by the laughter, started to tell jokes and puns again, and soon the entire kingdom was in on the joke.

| King's Treasury | People's happiness |
| :-------------- | :----------------- |
| Empty           | Overflowing        |
| Modest          | Satisfied          |
| Full            | Ecstatic           |

The king, seeing how much happier his subjects were, realized the error of his ways and repealed the joke tax. Jokester was declared a hero, and the kingdom lived happily ever after.

The moral of the story is: never underestimate the power of a good laugh and always be careful of bad ideas.