Download resources/views/default/components/tabs-trigger.blade.php from pnacorp/magicai: direct link, hf CLI and curl.
- Browser
- Download file 1.13 kB
-
https://huggingface.co/pnacorp/magicai/resolve/main/resources/views/default/components/tabs-trigger.blade.php
- Command line
-
hf download hf://pnacorp/magicai/resources/views/default/components/tabs-trigger.blade.php
-
curl -L -o tabs-trigger.blade.php https://huggingface.co/pnacorp/magicai/resolve/main/resources/views/default/components/tabs-trigger.blade.php
1.13 kB
| $classname = 'transition-all '; | |
| switch ($style) { | |
| case '1': | |
| $classname .= 'p-7 text-[1.25rem] text-center border rounded-xl font-heading font-medium hover:text-heading-foreground [&.lqd-is-active]:bg-white [&.lqd-is-active]:text-heading-foreground [&.lqd-is-active]:border-white [&.lqd-is-active]:shadow-lg'; | |
| break; | |
| case '2': | |
| $classname .= 'px-4 py-2 rounded-lg hover:text-heading-foreground [&.lqd-is-active]:text-heading-foreground [&.lqd-is-active]:bg-white [&.lqd-is-active]:shadow-xl'; | |
| break; | |
| case '3': | |
| $classname .= 'px-4 py-[0.35rem] min-w-[210px] rounded-lg hover:text-heading-foreground [&.lqd-is-active]:text-heading-foreground [&.lqd-is-active]:bg-white [&.lqd-is-active]:shadow-xs max-sm:w-full max-sm:h-10'; | |
| break; | |
| } | |
| if ($active) { | |
| $classname .= ' lqd-is-active'; | |
| } | |
| <button | |
| class="{{ $classname }}" | |
| data-target="{{ $target }}" | |
| > | |
| {{ ucfirst($label) }} | |
| @if (!empty($badge)) | |
| <span class="ml-1 inline-block rounded-md bg-[#684AE2] bg-opacity-10 p-[0.375rem] px-2 text-[#684AE2]">{{ $badge }}</span> | |
| @endif | |
| </button> | |