function SlugField
SlugField<T extends FieldValues>(unnamed 0: SlugFieldProps<T>): React.JSX.Element

Renders the slug's input after its path, and its error. Until the user types in it, it follows the title, proposing slugify(title), or the saved slug when the title slugifies as the saved one does. It must sit under a react-hook-form FormProvider.

Type Parameters

T extends FieldValues

Parameters

unnamed 0: SlugFieldProps<T>

Return Type

React.JSX.Element

Usage

import { SlugField } from "src/components/form/SlugField.tsx";