-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove folder and add menu-item file
- Loading branch information
1 parent
8fe8e45
commit aa48683
Showing
2 changed files
with
31 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
@props([ | ||
'label', | ||
'variant' => 'default', | ||
'href', | ||
]) | ||
|
||
@php | ||
$baseClasses = 'block rounded-lg px-4 py-2 text-center transition-all duration-200 ease-out'; | ||
$hoverClasses = 'hover:bg-slate-600'; | ||
$variantClasses = match ($variant) { | ||
'highlights' => 'font-bold text-indigo-400', | ||
'destructive' => 'text-red-400', | ||
default => 'text-slate-200', | ||
}; | ||
@endphp | ||
|
||
@if ($href) | ||
<a | ||
href="{{ $href }}" | ||
{{ $attributes->twMerge(['class' => "$baseClasses $variantClasses $hoverClasses"]) }} | ||
> | ||
{{ $label }} | ||
</a> | ||
@else | ||
<button | ||
{{ $attributes->twMerge(['class' => "$baseClasses $variantClasses $hoverClasses"]) }} | ||
> | ||
{{ $label }} | ||
</button> | ||
@endif |
This file was deleted.
Oops, something went wrong.