[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/admin](../../README) / [index](../README) / renderAction

# Function: renderAction()

> **renderAction**(`a`, `ctx`, `opts?`): [`HtmlNode`](../../../flow/index/type-aliases/HtmlNode) \| `null`

Defined in: [admin/src/actions/render.tsx:31](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/admin/src/actions/render.tsx#L31)

Render a single action. Link actions become `<a navigate>`, callbacks `<button>`.

## Parameters

### a

[`Action`](../classes/Action)

### ctx

[`ActionContext`](../interfaces/ActionContext)

### opts?

`RenderActionOptions` = `{}`

## Returns

[`HtmlNode`](../../../flow/index/type-aliases/HtmlNode) \| `null`
