Skip to content

Card

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

UI reference

PHP example

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

CardExample.php
<?php

use Streams\Ui\Builders\Containers\Card;

$card = Card::make('preview-card')
    ->heading('Profile')
    ->description('Sample card from the catalog.')
    ->components([
        TextInput::make('name')
            ->label('Name')
            ->placeholder('Ada Lovelace'),
    ]);

Preview

Profile

Sample card from the catalog.