# components/Callout (zidane-ui)

Import: `import { … } from 'zidane-ui'`. Source: [ui/src/components/Callout.tsx](https://github.com/Tahul/zidane/blob/main/ui/src/components/Callout.tsx).

## Components

### `Callout`

Component.

Renders a note on a soft wash of its tone (or beside a bar of it), with a glyph and an optional title.

```ts
function Callout(props: CalloutProps): Element
```

**Parameters**

- `props` (`CalloutProps`): [`CalloutProps`](https://zidane.si/docs/reference/ui-components-callout.md#CalloutProps).

**Returns** `Element`

**Props**

- `children?` (`ReactNode`): The note.
- `className?` (`string`): Extra classes on the root element.
- `style?` (`CSSProperties`): Inline styles on the root element.
- `title?` (`ReactNode`): A bold first line.
- `tone?` (`CalloutTone`, default `'neutral'`): The color and the glyph.
- `variant?` (`CalloutVariant`, default `'wash'`): `wash`: a soft box of its tone. `bar`: flat, a bar of its tone on the left.

Source: [ui/src/components/Callout.tsx:45](https://github.com/Tahul/zidane/blob/main/ui/src/components/Callout.tsx#L45)

## Interfaces

### `CalloutProps`

Interface.

Props for [`Callout`](https://zidane.si/docs/reference/ui-components-callout.md#Callout).

```ts
interface CalloutProps
```

**Properties**

- `children?` (`ReactNode`): The note.
- `className?` (`string`): Extra classes on the root element.
- `style?` (`CSSProperties`): Inline styles on the root element.
- `title?` (`ReactNode`): A bold first line.
- `tone?` (`CalloutTone`, default `'neutral'`): The color and the glyph.
- `variant?` (`CalloutVariant`, default `'wash'`): `wash`: a soft box of its tone. `bar`: flat, a bar of its tone on the left.

Source: [ui/src/components/Callout.tsx:17](https://github.com/Tahul/zidane/blob/main/ui/src/components/Callout.tsx#L17)

## Types

### `CalloutTone`

Type.

The tone of a [`Callout`](https://zidane.si/docs/reference/ui-components-callout.md#Callout).

```ts
type CalloutTone = 'neutral' | 'info' | 'success' | 'warning' | 'danger'
```

Source: [ui/src/components/Callout.tsx:11](https://github.com/Tahul/zidane/blob/main/ui/src/components/Callout.tsx#L11)

### `CalloutVariant`

Type.

How a [`Callout`](https://zidane.si/docs/reference/ui-components-callout.md#Callout) sets itself apart: a soft wash of its tone, or a bar of its tone on the left.

```ts
type CalloutVariant = 'wash' | 'bar'
```

Source: [ui/src/components/Callout.tsx:14](https://github.com/Tahul/zidane/blob/main/ui/src/components/Callout.tsx#L14)
