You can install the package via composer:
composer require elegantly/blade-kit
A button with icons, colors and loading state
1<x-kit::button class="rounded-md font-semibold" color="white">2 Button3</x-kit::button>
1<x-kit::button icon="heroicon-o-check-circle" class="rounded-md font-semibold"2 color="white" />3<x-kit::button icon="heroicon-o-check-circle" class="rounded-md font-semibold"4 color="white">Button</x-kit::button>5<x-kit::button icon-right="heroicon-o-check-circle" class="rounded-md font-semibold"6 color="white">Button</x-kit::button>
1<x-kit::button icon="heroicon-o-check-circle" class="rounded-md font-semibold"2 color="white" loading />3<x-kit::button icon="heroicon-o-check-circle" class="rounded-md font-semibold"4 color="black" loading>Button</x-kit::button>
1<x-kit::button class="rounded-md font-semibold" color="white">2 Button3</x-kit::button>
1<x-kit::button color="emerald" class="rounded-md border font-semibold">2 Button3</x-kit::button>
1<x-kit::button color="emerald" class="rounded-md font-semibold ring-1 ring-inset">2 Button3</x-kit::button>
1<x-kit::button.radio name="button-radio" class="rounded-md font-semibold"2 color="white" value="0">3 Value 04</x-kit::button.radio>5<x-kit::button.radio class="rounded-md font-semibold" color="white"6 name="button-radio" value="1" color-checked="emerald">7 Value 18</x-kit::button.radio>
A tag with icons and colors
1<x-kit::tag class="rounded-md font-semibold" color="white">2 Tag3</x-kit::tag>
1<x-kit::tag icon="heroicon-o-check-circle" class="rounded-md font-semibold"2 color="white" />3<x-kit::tag icon="heroicon-o-check-circle" class="rounded-md font-semibold"4 color="white">Tag</x-kit::tag>5<x-kit::tag icon-right="heroicon-o-check-circle" class="rounded-md font-semibold"6 color="white">Tag</x-kit::tag>
1<x-kit::tag class="rounded-md font-semibold" color="white">2 Tag3</x-kit::tag>
1<x-kit::tag color="emerald" class="rounded-md border font-semibold">2 Tag3</x-kit::tag>
1<x-kit::tag color="emerald" class="rounded-md font-semibold ring-1 ring-inset">2 Tag3</x-kit::tag>
An input with icons and colors
1<x-kit::input size="lg" class="rounded-md font-semibold" color="white" placeholder="Aa" />
1<x-kit::input color="emerald" class="rounded-md font-semibold" placeholder="Aa" />
1<x-kit::input icon="heroicon-o-check-circle" color="white"2class="rounded-md font-semibold" placeholder="Aa" />3<x-kit::input icon-right="heroicon-o-check-circle" color="white"4 class="rounded-md font-semibold" placeholder="Aa" />5<x-kit::input icon="heroicon-o-check" icon-right="heroicon-o-clipboard" color="white"6 class="rounded-md font-semibold" placeholder="Aa" />
Segmented buttons with icons and colors. All parameters from the button component can be used.
1<x-kit::segments color="gray" class="rounded-lg"> 2 <x-kit::segments.button class="rounded-md font-semibold" size="sm" 3 name="segment-name" checked> 4 Option 1 5 </x-kit::segments.button> 6 <x-kit::segments.button class="rounded-md font-semibold" size="sm" 7 name="segment-name"> 8 Option 2 9 </x-kit::segments.button>10</x-kit::segments>
1<x-kit::segments color="gray" class="rounded-lg"> 2 <x-kit::segments.button class="rounded-md font-semibold" color="emerald" 3 name="segment-name" checked> 4 Option 1 5 </x-kit::segments.button> 6 <x-kit::segments.button class="rounded-md font-semibold" color="emerald" 7 name="segment-name"> 8 Option 2 9 </x-kit::segments.button>10</x-kit::segments>
1<x-kit::segments color="gray" class="rounded-lg"> 2 <x-kit::segments.button icon="heroicon-o-check-circle" 3 class="rounded-md font-semibold" name="segment-name" checked> 4 Option 1 5 </x-kit::segments.button> 6 <x-kit::segments.button icon="heroicon-o-check-circle" 7 class="rounded-md font-semibold" name="segment-name"> 8 Option 2 9 </x-kit::segments.button>10</x-kit::segments>
HTML select styled with button aesthetics.
1<x-kit::select class="rounded-md font-semibold" size="sm" name="select-fr">2 <option value="en">English</option>3 <option value="fr">French</option>4</x-kit::select>
1<x-kit::select class="rounded-md font-semibold" color="rose" name="select-fr">2 <option value="en">English</option>3 <option value="fr">French</option>4</x-kit::select>
Custom-styled radio inputs with switch design.
1<x-kit::switch class="rounded-md font-semibold" name="switch-base">2 Value3</x-kit::switch>
1<x-kit::switch class="rounded-md font-semibold" name="switch" color="rose">2 Value3</x-kit::switch>