Download app/View/Components/TabsTrigger.php from pnacorp/magicai: direct link, hf CLI and curl.
- Browser
- Download file 658 Bytes
-
https://huggingface.co/pnacorp/magicai/resolve/main/app/View/Components/TabsTrigger.php
- Command line
-
hf download hf://pnacorp/magicai/app/View/Components/TabsTrigger.php
-
curl -L -o TabsTrigger.php https://huggingface.co/pnacorp/magicai/resolve/main/app/View/Components/TabsTrigger.php
658 Bytes
| namespace App\View\Components; | |
| use Closure; | |
| use Illuminate\Contracts\View\View; | |
| use Illuminate\View\Component; | |
| class TabsTrigger extends Component | |
| { | |
| /** | |
| * Create a new component instance. | |
| */ | |
| public function __construct( | |
| public string $label = 'AI Text Generator', | |
| public string $style = '1', | |
| public string $target = '#', | |
| public string $badge = '', | |
| public bool $active = false | |
| ) { | |
| // | |
| } | |
| /** | |
| * Get the view / contents that represent the component. | |
| */ | |
| public function render(): View|Closure|string | |
| { | |
| return view('components.tabs-trigger'); | |
| } | |
| } | |