Pre-1.0. Not intended for public use yet. The API is subject to undocumented change, and these pages may already be wrong about it.

Skip to content

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.

bash
composer require storyfeed/ui
KitSetupRequires
Bladepackage views, registered automaticallyPHP 8.4+; Tailwind CSS v4
Vuephp artisan storyfeed:ui vueVue 3, TypeScript; Tailwind CSS v4
Reactphp artisan storyfeed:ui reactReact 19, TypeScript; Tailwind CSS v4

All three kits use the same colour tokens.

Copying Vue or React ​

bash
php artisan storyfeed:ui vue
# Or: php artisan storyfeed:ui react

The 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 StateOn Re-run
missingwrites the file
identicalskips the file
differingkeeps the application's file and reports it
OptionEffect
--path=resources/js/my-feedchanges the destination
--diffprints unified diffs for differing files
--forcereplaces differing files
bash
php artisan storyfeed:ui vue --diff

Scanning Tailwind Utilities ​

For copied Vue or React components, add the directory if your app does not already scan it:

resources/css/app.css
css
@source "../js/components/storyfeed";

For Blade, scan the package's views:

resources/css/app.css
css
@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:

bash
npm install -D @tailwindcss/typography

Then register it:

resources/css/app.css
css
@plugin "@tailwindcss/typography";

Compile with npm run build and load the compiled CSS in your layout. The kits need no separate stylesheet.

Released under the MIT License.