Skip to main content

SlugInput

A component for generating and displaying slugs based on a watched field. The component watches a source field for changes, debounces the input, and generates a unique slug via the Admin API. The slug is only auto-generated when it's empty. For existing slugs, a regenerate button allows manual regeneration. The input is readonly by default but can be made editable with a toggle button.

Example

Tsx
Signature

Parameters

props

parameterSlugInputProps
Was this chapter helpful?
Report Issue
Edited Feb 23, 2026ยทEdit this page