soamn/maple

Beautiful Tailwind and Alpine components for Laravel Blade

Maintainers

Details

github.com/soamn/maple

Source

Issues

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Language:Blade

v1.0.0 2025-05-15 12:44 UTC

This package is auto-updated.

Last update: 2025-05-16 03:06:27 UTC


README

soamn/maple

Get Beautiful Ui Components for Laravel/Blade

!! Important - Remember to add Following CDN for alpine.js

<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>

📚 Quick Links

Install command

composer require soman/maple

php artisan maple:install [component]

Package Link

Components

Button Base

php artisan maple:install button/base

      <x-maple.button.base>
            Button
      </x-maple.button.base>

Button

Card/untouchable

php artisan maple:install card/untouchable

Props

maxRotation how much does the card rotate along the axis

      <x-maple.card.untouchable maxRotation=20 >
        <div>
        <p class="text-lg">Untouchable</p>
        <p class="text-sm">Touch me if you can</p>
        </div>
        <img src= '' alt="">
    </x-maple.card.untouchable>

untouchable

Card/carousal3d

php artisan maple:install card/carousal3d

Props

  • :items=[] array of array with id and image

  • autoRotate default-false Rotates the cards after several interval

        <x-maple.card.carousal3d :items="[
        [
            'id' => 1,
            'image' =>
                'https://example.png',
        ],
      .
      .
      .

    ]" />

carousal3d

tooltip

php artisan maple:install tooltip

Props

'tooltipBackground' => 'bg-black', 'tooltipText' => 'text-white', 'tooltipWidth' => '20',

:items=[] array of array with id and image

tooltipBackground Background Color of tooltip

tooltipText text color of tooltip

tooltipWidth width of the tooltip card

  <x-maple.tooltip :items="[
            ['id' => 2, 'name' => 'Jane', 'designation' => 'Designer', 'image' => 'https://example']
            .
            .
            .

           ]"
            tooltioWidth='fit' />

tooltip

typewriter

php artisan maple:install typewriter

Props

text string

 <x-maple.typewriter class="w-100"
            text="I lost control I wanted to kill him what that makes me " />

typewriter

sidebar

php artisan maple:install typewriter

Props

color bg-white

text text-black

boder border-zinc-800

Named Slots

header

SidebarItems

    <x-maple.sidebar color='bg-black' text="text-white" border="border-zinc-900">
        <x-slot name='header'>
            <span class="font-bold text-xl">Sidebar</span>
        </x-slot>

        <x-slot name="SidebarItems">
            <a href="#" class="block  px-3 py-2 rounded">Dashboard</a>
            <a href="#" class="block  px-3 py-2 rounded">Projects</a>
            <a href="#" class="block  px-3 py-2 rounded">Settings</a>
        </x-slot>


        <div class="p-6">
            <h1 class="text-3xl font-bold mb-4">Main Content</h1>
            <p>This content smoothly shifts when the sidebar opens or closes. Alpine.js manages the state.</p>
        </div>

    </x-maple.sidebar>

sidebar