# useAvailability

> For the complete documentation index, see [llms.txt](https://ensforge.com/llms.txt).

Checks whether a name can be registered now. Signature, options, result and examples for useAvailability in @ensforge/react.

Source: https://ensforge.com/docs/reference/react/use-availability

<ApiMeta kind="Read hook" stability="stable" since="1.0.0" source="packages/react/src/hooks/named/reads.ts#L164" />

Checks whether a name can be registered now. Preset of `useRead(Actions.registration.isAvailable, …)`.

It wraps [`registration.isAvailable`](/docs/reference/sdk/registration/is-available): the same options, result and errors.

## Signature [#signature]

```ts
function useAvailability(options: Actions.registration.isAvailable.Options | undefined, config?: ReadConfig): ReadResult< Actions.registration.isAvailable.ReturnType, Actions.registration.isAvailable.ErrorType >
```

## Examples [#examples]

```tsx title="Reading in a component"
import { useAvailability } from "@ensforge/react"

function View() {
  const { data: available } = useAvailability({ name: "alice.eth" })
  return <span>{String(available)}</span>
}
```

## See also [#see-also]

- The [hook types](/docs/reference/react#types): `ReadResult`, `WriteResult` and `ReadConfig`.