@sanity/routes
    Preparing search index...

    Variable SlugWithUrlPreviewConst

    SlugWithUrlPreview: (props: SlugInputProps) => Element = ...

    A slug input component that shows the resolved URL prefix above the slug field.

    Convenience export that auto-detects the channel by querying for the default config (isDefault: true). For multi-channel projects, use createSlugWithUrlPreview with an explicit channel instead.

    Type Declaration

      • (props: SlugInputProps): Element
      • Parameters

        • props: SlugInputProps

        Returns Element

    import {SlugWithUrlPreview} from '@sanity/routes/studio'

    defineField({
    name: 'slug',
    type: 'slug',
    options: { source: 'title' },
    components: { input: SlugWithUrlPreview },
    })