# Callout

import { Callout } from "zudoku/ui/Callout";
import { ReactComponentDoc } from "zudoku/ui/ReactComponentDoc";

This is a callout component that can be used to draw attention to important information.

## Import

```tsx
import { Callout } from "zudoku/ui/Callout";
```

<ReactComponentDoc component={Callout} />

:::tip{title="Hot tip"}

There's a shortcut to use callout components in Markdown files:
[Admonitions](../markdown/admonitions).

:::

## Note

<Callout type="note" title="Hey, listen!">
  This draws attention to important information.
</Callout>

```tsx
<Callout type="note" title="Hey, listen!">
  This draws attention to important information.
</Callout>
```

## Info

<Callout type="info" title="It's safe to use the info">
  This adds info to your content.
</Callout>

```tsx
<Callout type="info" title="It's safe to use the info">
  This adds info to your content.
</Callout>
```

## Tip

<Callout type="tip" title="You'll be successful">
  If you choose to be.
</Callout>

```tsx
<Callout type="tip" title="You'll be successful">
  If you choose to be.
</Callout>
```

## Danger

<Callout type="danger" title="But some things are dangerous">
  It's dangerous to go alone, take this.
</Callout>

```tsx
<Callout type="danger" title="But some things are dangerous">
  It's dangerous to go alone, take this.
</Callout>
```

## Caution

<Callout type="caution" title="So, better show a warning">
  This raises a warning to watch out for.
</Callout>

```tsx
<Callout type="caution" title="So, better show a warning">
  This raises a warning to watch out for.
</Callout>
```

## Variations

Callouts can be customized by omitting the title or icon:

<Callout type="note">Without a title</Callout>

<Callout type="note" icon={false} title="Without an icon">
  You can hide the icon while keeping the title
</Callout>

<Callout type="note" icon={false}>
  Or have neither title nor icon
</Callout>

```tsx
<Callout type="note">
  Without a title
</Callout>

<Callout type="note" icon={false} title="Without an icon">
  You can hide the icon while keeping the title
</Callout>

<Callout type="note" icon={false}>
  Or have neither title nor icon
</Callout>
```
