Installing the Kits
Storyfeed UI renders a page of activities with Blade, Vue or React components. Install the package, then choose the kit your application uses.
composer require storyfeed/ui| Kit | Setup | Requires |
|---|---|---|
| Blade | package views, registered automatically | PHP 8.4+; Tailwind CSS v4 |
| Vue | php artisan storyfeed:ui vue | Vue 3, TypeScript; Tailwind CSS v4 |
| React | php artisan storyfeed:ui react | React 19, TypeScript; Tailwind CSS v4 |
All three kits use the same colour tokens.
Copying Vue or React
php artisan storyfeed:ui vue
# Or: php artisan storyfeed:ui reactThe command copies components and their framework-free shared/ directory to resources/js/components/storyfeed. Commit those files with your application.
Copied files belong to your application; edit them freely. Re-running the command keeps your edits:
| File State | On Re-run |
|---|---|
| missing | writes the file |
| identical | skips the file |
| differing | keeps the application's file and reports it |
| Option | Effect |
|---|---|
--path=resources/js/my-feed | changes the destination |
--diff | prints unified diffs for differing files |
--force | replaces differing files |
php artisan storyfeed:ui vue --diffScanning Tailwind Utilities
For copied Vue or React components, add the directory if your app does not already scan it:
@source "../js/components/storyfeed";For Blade, scan the package's views:
@source "../../vendor/storyfeed/ui/resources/views";Registering the Typography Plugin
All three kits render Prose, ItemList and Table bodies inside the Typography plugin's prose class. Install the plugin:
npm install -D @tailwindcss/typographyThen register it:
@plugin "@tailwindcss/typography";Compile with npm run build and load the compiled CSS in your layout. The kits need no separate stylesheet.