Search by

alfasix / alfakit-tags

faizanakbar10

Spatie Laravel Tags input, column and entry for AlfaKit panels.

v0.1.5 2026-10-19 05:29 UTC

This package is auto-updated.

Last update: 2026-10-19 13:14:28 UTC


README

by Alfa Six

This is a read-only split of the AlfaKit monorepo. Please open issues and pull requests there.

Spatie Laravel Tags input, column and entry for AlfaKit panels. They render in React, Vue and Svelte with AlfaKit's built-in components.

Installation

composer require alfasix/alfakit-tags

Install and migrate spatie/laravel-tags, then add HasTags to your model.

Registering the plugin is optional:

use AlfaSix\AlfakitTags\TagsPlugin;

$panel->plugin(TagsPlugin::make());

Usage

use AlfaSix\AlfakitTags\Forms\Components\SpatieTagsInput;
use AlfaSix\AlfakitTags\Infolists\Components\SpatieTagsEntry;
use AlfaSix\AlfakitTags\Tables\Columns\SpatieTagsColumn;

// Form: filled from the record's tags of the type, suggests existing tags, saved with syncTagsWithType().
SpatieTagsInput::make('categories')->type('categories');

// Table and infolist: the tag names as badges.
SpatieTagsColumn::make('tags')->type('categories');
SpatieTagsEntry::make('tags')->type('categories');

Without type() tags of every type are used (and the input saves with syncTags()); type(null) means tags without a type.

Full documentation: alfakit.dev/docs/plugins/tags.

License

MIT. See LICENSE.md.