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
Parameters
props
parameter
SlugInputPropsWas this chapter helpful?