Skip to content

Select input

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

UI reference

PHP example

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

SelectInputExample.php
<?php

use Streams\Ui\Builders\Inputs\SelectInput;

$selectInput = SelectInput::make('status')
    ->label('Status')
    ->placeholder('Choose a status')
    ->options(array (
  'draft' => 'Draft',
  'published' => 'Published',
));

Preview