Skip to main content

Overview

useCheckSlugAvailability returns a callable function that verifies whether a slug is available in the current project. Useful for live validation in a space creation or settings form.

Usage Example

Parameters

slug
string
required
The slug to check. Must match the slug pattern: letters, numbers, hyphens, and underscores (Unicode supported).

Returns

available
boolean
true if the slug is not currently in use within the project.