Skeleton v4 Early Preview #3634
Replies: 2 comments 5 replies
This comment has been hidden.
This comment has been hidden.
-
I love the unified However, I want to say that I don't like the verbose bits-based new components - this is actually one of the main reasons I chose to use Skeleton, over all of the other component libraries. I hope you can find a way to keep the current simplicity, with the added customizability. Personally, I'd love to see a way to use components with a "default" structure somehow: <Accordion>
<Accordion.Item>
{#snippet lead()}<IconClub />{/snippet}
{#snippet control()}Club{/snippet}
{#snippet panel()}{lorem}{/snippet}
</Accordion.Item>
</Accordion>
<!-- identical to -->
<Accordion.C>
<Accordion.CItem>
<Accordion.CHeading>
<Accordion.CTrigger>
<IconClub />
<span>Club</span>
<Accordion.CIndicator />
</Accordion.CTrigger>
</Accordion.CHeading>
<Accordion.CContent>{lorem}</Accordion.CContent>
</Accordion.CItem>
</Accordion.C> The documentation should state that... <Accordion.Item>
{#snippet lead()}{LEAD}{/snippet}
{#snippet control()}{CONTROL}{/snippet}
{#snippet panel()}{PANEL}{/snippet}
</Accordion.Item> equals <Accordion.CItem>
<Accordion.CHeading>
<Accordion.CTrigger>
{LEAD}
{CONTROL}
<Accordion.CIndicator />
</Accordion.CTrigger>
</Accordion.CHeading>
<Accordion.CContent>{PANEL}</Accordion.CContent>
</Accordion.CItem> so that anyone can copy-paste the new composed structure and replace I'm not suggesting this exact syntax, just a way to use the component in a "default", non-verbose way. 100% of all Skeleton users are using components like this now (duh), so providing a way to update to v4 with a minimal migration, while allowing components to later be customized, is most important IMO. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone, Chris here from Skeleton. Today the team and I are thrilled to pull back and curtain and share an early hands-on preview for what's coming in Skeleton v4. This will initially focus on new component API changes, which were originally proposed via this RFC.
Goal
The new component changes help address many of the pain points you've likely encountered when using Skeleton in the past. We are addressing this by allowing direct access to the component markup, while also making it easier to style and provide arbitrary attributes. This also goes a long way towards making Skeleton more intuitive to learn for new users. Which is critical if we hope for the library to continue to grow and evolve over time.
What's New
To help cover the new changes for components, we've added a new documentation section providing all details. This showcases code examples and helps explain the thought process behind each change:
https://www.skeleton.dev/docs/get-started/v4-early-preview
This covers:
Get Started
The good news is it's extremely easy to access to the new preview components. Rather than implementing a new standalone package or restricting this to a test branch - we've simply introduced two new components to the latest release of our Skeleton v3 packages.
By updating to the latest release of each package, you will gain access to the new v4 preview components:
@skeletonlabs/skeleton: 3.2.0
(or higher) - for styling@skeletonlabs/skeleton-react: 1.4.0
(or higher) - for React components@skeletonlabs/skeleton-svelte: 1.5.0
(or higher) - for Svelte componentsDocumentation for the new preview components:
Note the unique import path for either component and framework:
Providing Feedback
Our early preview gives you a chance to go hands on and test the new components and experience how they operate first hand. We hope that you will test them out and provide questions and feedback on your experience. As always you can reach out in the comments section below, or on Discord via the
#contributor
channel. We're excited to hear what you think!FAQ
Will I be required to install a special version of Skeleton to test these components?
Nope! Just install the latest release of the v3 packages and you should gain access immediately to the new Avatar and Accordion components.
Will these features undergo breaking changes?
This is highly likely. We're providing this early preview for that very reason. We hope folks will provide feedback, we'll review and make changes as needed, and release updates as we go. So please exercise caution if you plan to use these features in a production environment.
Will all components adopt these new conventions?
That's the plan! Again, we're providing this early preview for feedback. Once we feel the community is happy with the changes, we'll begin the process of porting all components to the new format. This will come as likely the focus of the upcoming Skeleton v4 release.
Will this be the ONLY update in Skeleton v4?
No, but expect the changes to be much smaller in scope than the jump from Skeleton v2 -> v3. We are doing our best to minimize the migration needed for this update.
When can we expect Skeleton v4?
When it's ready! We've already started prepping to convert all components to the new v4 format. And will keep you posted as we get closer to a solid release date. But note the current ETA for v4 is likely months out from now, given the scope of work and our current availability. We appreciate your patience in the meantime.
Special Thanks
Huge shoutout to long-time contributor @Hugos68 for leading the charge on this initiative!
Beta Was this translation helpful? Give feedback.
All reactions