# ComposerFormat

> Island holding a composer's formatting buttons: bold, italic, strikethrough, code, link, quote and list, each writing its Markdown around the selection in the composer's field and bound to the usual shortcut while the field has focus.

```ts
import { ComposerFormat } from "@sdxc/ui/chat";
```

Renders a row of small ghost buttons. Each edit goes through the browser's editing
commands, so Undo reverts it, and leaves the formatted text selected or the caret between
new markers. Mod+B, Mod+I, Mod+Shift+X and Mod+E work while the field has focus.

## Examples

```tsx
<Composer.Toolbar>
	<ComposerFormat labels={{ bold: "Bold", italic: "Italic", strike: "Strikethrough", code: "Code", link: "Link", quote: "Quote", list: "List" }} />
</Composer.Toolbar>
```

## Props

Takes no props of its own.
