# useFieldContext (@salmonui/inputs/form)

> The useFieldContext function of @salmonui/inputs/form: The state of the enclosing Field, or null outside one.

Canonical: https://salmonui.dev/docs/reference/inputs/form/useFieldContext

```ts
import { useFieldContext } from '@salmonui/inputs/form';
```

Entry index: https://salmonui.dev/docs/reference/inputs/form (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/inputs/form.md).

## Reference

Kind: function

```ts
function useFieldContext(): FieldState | null;
```

The state of the enclosing `Field`, or null outside one.
