Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Agents
enesekinci/laravel-livewire-admin-ui
claude-code
cursor
admin
ui
laravel
blade
tailwind
livewire

Reusable admin UI primitives for Laravel Livewire + Tailwind panels.

Install
php artisan boost:add-skill enesekinci/laravel-livewire-admin-ui

Save this content to: AGENTS.md

# AGENTS.md — laravel-livewire-admin-ui

## Purpose
Reusable admin UI primitives for Laravel Livewire + Tailwind panels.

## Hard rules for AI agents
1. **Prefer these components** over raw HTML inputs/buttons/tables in admin screens.
2. Use aliases exactly:
   - `x-admin.button`, `x-admin.input`, `x-admin.textarea`, `x-admin.select`
   - `x-admin.card`, `x-admin.table`, `x-admin.stat`, `x-admin.icon-button`
   - `x-admin.table.head`, `x-admin.table.body`, `x-admin.table.row`
   - `x-admin.table.th`, `x-admin.table.td`, `x-admin.table.empty`, `x-admin.table.actions`
   - `x-admin.pagination` (pass `:paginator="$items"`)
   - `x-admin.page`, `x-admin.page-header`, `x-admin.toolbar`, `x-admin.actions`
   - `x-admin.field`, `x-admin.fields`, `x-admin.section-title`
   - `x-admin.checkbox` (varsayılan: radio görünümü; `variant="switch"` | `native`), `x-admin.error`, `x-admin.hint`, `x-admin.link`, `x-admin.file`
   - `x-admin.badge`, `x-admin.alert`, `x-admin.metric`, `x-admin.metrics`, `x-admin.panel`
   - `x-admin.nav`, `x-admin.nav.item`, `x-admin.nav.group`
3. Do **not** invent parallel UI kits (no new Button/Input components in the app).
4. Do **not** ask the user which button style to use — defaults:
   - Primary action → `x-admin.button` (default variant)
   - Secondary → `variant="light"` or `secondary`
   - Destructive → `variant="danger"`
   - Row actions → `x-admin.icon-button` (`edit` / `trash` / `eye`)
5. Forms: wrap sections in `x-admin.card`; lists in `x-admin.table` + subcomponents (never raw `<thead>`/`<tbody>` in admin lists).
6. Paginated lists: `<x-admin.pagination :paginator="$items" />` after the table (not raw `$items->links()`).
7. Always keep Tailwind `@source` for this package views.
8. Branding/layout shell stays in the **app**; this package is components only.
9. Admin sidebar navigation uses `x-admin.nav` with an items array; do not hand-roll sidebar markup in apps.

## Navigation usage

Pass a structured `items` array to `x-admin.nav`. Each item is either a leaf (`route` + `match`) or a group (`children`).

```blade
<x-admin.nav
    brand="#16a34a"
    brandShort="KT"
    panelLabel="Yönetim"
    :items="[
        ['label' => 'Dashboard', 'route' => 'admin.dashboard', 'match' => 'admin.dashboard', 'icon' => 'M3 12l2-2m0 0l7-7...'],
        ['label' => 'Hayvanlar', 'icon' => 'M4.318 6.318a4.5...', 'children' => [
            ['label' => 'Hayvanlar', 'route' => 'admin.animals.index', 'match' => 'admin.animals.*'],
            ['label' => 'Irklar', 'route' => 'admin.animals.breeds', 'match' => 'admin.animals.breeds'],
        ]],
    ]"
/>
```

Active state and group expansion are computed automatically from the current route.
9. If a needed primitive is missing, extend **this package** (not the app), bump tag, require update.

## Do not package into this repo
Domain CRUD, auth, business rules.

AGENTS.md — laravel-livewire-admin-ui

Purpose

Reusable admin UI primitives for Laravel Livewire + Tailwind panels.

Hard rules for AI agents

  1. Prefer these components over raw HTML inputs/buttons/tables in admin screens.
  2. Use aliases exactly:
    • x-admin.button, x-admin.input, x-admin.textarea, x-admin.select
    • x-admin.card, x-admin.table, x-admin.stat, x-admin.icon-button
    • x-admin.table.head, x-admin.table.body, x-admin.table.row
    • x-admin.table.th, x-admin.table.td, x-admin.table.empty, x-admin.table.actions
    • x-admin.pagination (pass :paginator="$items")
    • x-admin.page, x-admin.page-header, x-admin.toolbar, x-admin.actions
    • x-admin.field, x-admin.fields, x-admin.section-title
    • x-admin.checkbox (varsayılan: radio görünümü; variant="switch" | native), x-admin.error, x-admin.hint, x-admin.link, x-admin.file
    • x-admin.badge, x-admin.alert, x-admin.metric, x-admin.metrics, x-admin.panel
    • x-admin.nav, x-admin.nav.item, x-admin.nav.group
  3. Do not invent parallel UI kits (no new Button/Input components in the app).
  4. Do not ask the user which button style to use — defaults:
    • Primary action → x-admin.button (default variant)
    • Secondary → variant="light" or secondary
    • Destructive → variant="danger"
    • Row actions → x-admin.icon-button (edit / trash / eye)
  5. Forms: wrap sections in x-admin.card; lists in x-admin.table + subcomponents (never raw <thead>/<tbody> in admin lists).
  6. Paginated lists: <x-admin.pagination :paginator="$items" /> after the table (not raw $items->links()).
  7. Always keep Tailwind @source for this package views.
  8. Branding/layout shell stays in the app; this package is components only.
  9. Admin sidebar navigation uses x-admin.nav with an items array; do not hand-roll sidebar markup in apps.

Navigation usage

Pass a structured items array to x-admin.nav. Each item is either a leaf (route + match) or a group (children).

<x-admin.nav
    brand="#16a34a"
    brandShort="KT"
    panelLabel="Yönetim"
    :items="[
        ['label' => 'Dashboard', 'route' => 'admin.dashboard', 'match' => 'admin.dashboard', 'icon' => 'M3 12l2-2m0 0l7-7...'],
        ['label' => 'Hayvanlar', 'icon' => 'M4.318 6.318a4.5...', 'children' => [
            ['label' => 'Hayvanlar', 'route' => 'admin.animals.index', 'match' => 'admin.animals.*'],
            ['label' => 'Irklar', 'route' => 'admin.animals.breeds', 'match' => 'admin.animals.breeds'],
        ]],
    ]"
/>

Active state and group expansion are computed automatically from the current route. 9. If a needed primitive is missing, extend this package (not the app), bump tag, require update.

Do not package into this repo

Domain CRUD, auth, business rules.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table
siberfx/flysystem-wasabi
hollyit/token-replace
ippanelcom/laravel-sdk
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel