# jsxAttr

**Kind:** Function

**Source:** [`src/jsx/jsx-runtime.ts`](https://github.com/honojs/hono/blob/main/src/jsx/jsx-runtime.ts#L16)

**Part of:** [Jsx](subsystem-src-jsx)

## Signature

```ts
function jsxAttr(key: string, v: string | Promise<string> | Record<string, string | number | null | undefined | boolean>): HtmlEscapedString | Promise<HtmlEscapedString>
```

## Parameters

| Name | Type |
|---|---|
| `key` | `string` |
| `v` | `string | Promise<string> | Record<string, string | number | null | undefined | boolean>` |

**Returns:** `HtmlEscapedString | Promise<HtmlEscapedString>`

## Relationships

- IMPORTS → `html`
- IMPORTS → `html`
- IMPORTS → `escapeToBuffer`
- IMPORTS → `stringBufferToString`
- IMPORTS → `isValidAttributeName`
- IMPORTS → `styleObjectForEach`
- IMPORTS → `jsxDEV`
- IMPORTS → `jsxDEV`
