Skip to content

Slug input

Read-only PHP for this component, with a live preview.

UI reference

PHP example

Read-only builder code generated from the Slug input class and its catalog defaults. Copy it into your own application.

SlugInputExample.php
<?php

use Streams\Ui\Builders\Inputs\SlugInput;

$slugInput = SlugInput::make('slug')
    ->label('Slug')
    ->placeholder('post-title')
    ->slugify('title');

Preview