Skip to content

Action card

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

UI reference

PHP example

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

ActionCardExample.php
<?php

use Streams\Ui\Builders\Actions\Action;
use Streams\Ui\Builders\Actions\ActionCard;

$actionCard = ActionCard::make('export-card')
    ->label('Export')
    ->description('Download a sample export.')
    ->action(Action::make('export')
        ->label('Export')
        ->url('/docs/ui/actions'));

Preview

Export

Download a sample export.