Jack Sleight's Avatar

Jack Sleight

@jacksleight.com

Freelance full-stack, Laravel and Statamic developer. Love solving interesting problems. jacksleight.dev

134
Followers
193
Following
53
Posts
24.08.2023
Joined
Posts Following

Latest posts by Jack Sleight @jacksleight.com

Preview
Force Alpine component re-initialisation on hot reload In a previous post I outlined a method for hot reloading Statamic's live preview using Alpine's Morph plugin. It works, but there's an issue: Alpine components on the page don't re-initialise when the...

jacksleight.dev/posts/force-...

06.03.2026 15:08 πŸ‘ 1 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0
Post image

Statamic 6 is here! πŸš€

A redesigned Control Panel, a modern Vue 3 + Inertia foundation, a new UI component library, a long list of architectural & performance improvements, and that's just scratching the surface.

This is a new beginning, ready for what comes next. ❀️

28.01.2026 17:48 πŸ‘ 27 πŸ” 8 πŸ’¬ 3 πŸ“Œ 2

According to Google (AI) they have the same logical widths of 375 px. But maybe there are other factors.

Anyway it’s not a major issue at all, especially as it’s so close to the end.

21.12.2025 11:05 πŸ‘ 3 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

Awesome post, incredibly well done as always. πŸ’―

I know I’m in the minority with an iPhone Mini but I noticed a little issue on the smaller screen. The text in this demo wraps, causing height changes that make the rest of the article below jump up and down a bit.

21.12.2025 10:48 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Oh thought of another:

Ability to pass dynamic vars from the template to the layout (basically the feature from your Antlers Layouts addon, but built in).

30.11.2025 08:57 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

I would LOVE more control over partial scopes and param parsing. eg:

- Ability to prevent partials leaking vars into parent scope.
- Ability to prevent partials inheriting parent scope.
- Some kind of spread syntax to pass a bunch of specific params to a partial in one go.

If that’s what you mean?

29.11.2025 20:35 πŸ‘ 2 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Preview
debug-root-margin.js GitHub Gist: instantly share code, notes, and snippets.

Ever struggled to debug an intersection observer's root margin? I know I have! So I wrote a little helper that plonks a big red box over the observer's intersection area: gist.github.com/jacksleight/...

11.11.2025 18:00 πŸ‘ 1 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0

Year progress: 75%
Website progress: ehhh… 35%?

04.10.2025 08:17 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Thanks! Yeah exactly, and it’s my go-to JS framework, so figured it would be useful to have Alpine versions of the techniques for future reference.

02.10.2025 19:12 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

Thoroughly enjoying @joshwcomeau.com 's Whimsical Animations course! And because I wanted extra work for some reason I’m also doing alpinejs.dev versions of all the exercises.

02.10.2025 12:57 πŸ‘ 16 πŸ” 1 πŸ’¬ 1 πŸ“Œ 0

Agreed! No clue whatsoever.

23.09.2025 07:40 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Woop! πŸ™Œ Love the new branding.

23.08.2025 10:37 πŸ‘ 4 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Have a great time!

27.07.2025 14:14 πŸ‘ 2 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Totally, Boost is too much.

20.07.2025 21:46 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Oh, you’re suggesting Quad (four snack size in one sitting)? Excellent idea! 🍫🍫🍫🍫

20.07.2025 21:45 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Post image

Also, forget snack size, see if you can find a duo.

20.07.2025 19:04 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

My #1 favourite chocolate bar. Literally bought one an hour ago. πŸ‘πŸ‘

20.07.2025 19:01 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
GitHub - jacksleight/laravel-omni: Laravel package and Vite plugin for building universal single-file Blade and Livewire components. Laravel package and Vite plugin for building universal single-file Blade and Livewire components. - jacksleight/laravel-omni

Got that universal single-file Blade/Livewire component experiment working pretty nicely now. Here's the repo if anyone's interested: github.com/jacksleight/...

14.07.2025 13:01 πŸ‘ 2 πŸ” 1 πŸ’¬ 1 πŸ“Œ 0

Now working without the trait and with renderless actions. I do love Livewire!

09.07.2025 13:18 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

Computed Livewire properties aren't available client-side, but sometimes they'd be really useful. So I built a little utility to make that possible.

Under the hood this is just dispatching an event with the data on each update. You can of course do that yourself, but I like the simplicity of this.

09.07.2025 10:46 πŸ‘ 2 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

I’m so glad I found your account, your own posts and the things you share are always so interesting!

Thanks for all the good reads. πŸ™‚πŸ‘

15.06.2025 08:22 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

A way to either override the PHP that component tags are compiled to or implement custom component tags without duplicating all that regex would be ace.

Within the templates I’m using a prepare strings callback to split out the various parts (using regex) maybe the parser could handle some of that?

18.05.2025 18:33 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

I’ve been chipping away at this recently:
bsky.app/profile/jack...
bsky.app/profile/jack...

Still pretty rough and kinda hacky but it’s functional. A more official/robust way to do it would be ace. Would love your thoughts on it.

18.05.2025 08:13 πŸ‘ 1 πŸ” 0 πŸ’¬ 2 πŸ“Œ 0

Of course! πŸ’―

10.05.2025 18:08 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image Post image

Unified component experiment continues. Blade components now use an inline class for props, so the syntax can be identical to Livewire. Now upgrading a Blade component to Livewire is as simple as switching β€œBladeComponent” for β€œLivewireComponent” and adding the Livewire things.

07.05.2025 12:55 πŸ‘ 3 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Tagged @statamic.bsky.social Bard Texstyle v3.5. Includes a handful of small but hopefully useful features:

✳️ Heading styles that can apply to any level
πŸ«₯ Ability to hide parts of text content
🎨 CP CSS for specific attribute values
β˜‘οΈ A couple of other little extras

statamic.com/addons/jacks...

31.03.2025 12:30 πŸ‘ 3 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

Finally (ish) is wildcard heading styles, so you can have a single heading style that can be applied to multiple heading levels.

28.03.2025 15:33 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

Next up is custom control panel CSS for individual attribute values.

27.03.2025 18:03 πŸ‘ 6 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Post image

Working on some new features for Bard Texstyle 3.5. First one is the ability to hide parts of text content, useful if you need to temporarily remove something. Hidden content is completely excluded from the rendered HTML.

27.03.2025 17:16 πŸ‘ 9 πŸ” 1 πŸ’¬ 1 πŸ“Œ 0
Post image

So you're saying my code is perfect? That's what you're saying? Great!

13.03.2025 18:14 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0