Open kristianmandrup opened 2 months ago
Glad to see you've been digging in! The reason I haven't thoroughly documented each item is that I haven't fully solidified my API, and intellisense gives good tips. I've been using Kitbook for a long time now, so you'd think I'd have figured it out, but I'm still discovering new use cases and trying to brainstorm the easiest way to implement them with the least boilerplate. For example, I used to have the props under a property called props
and then I tried props root level to cut out a little boilerplate. While it was convenient, when it comes to adding any other config, it's kind of annoying to need to place it all under _meta
. So through trial and error, I've realized it is a bad idea.
I also have a few other potential changes in the slow-cooker: notably alignment with the barebones of the Storybook CSF conventions (if they're not ditching regular CSF for Svelte CSF completely, see here); and Svelte 5 support.
Double-Check
Clear description of the requested feature
From looking through the docs it was unclear which
_meta
properties were available. Your video helped answer a lot of other questions, such as the ability to use the kit vite plugin for configuration, but again now clear what is available to configure tbh.Ah, just found this in the docs: https://kitbook.vercel.app/docs/1-variants/DefaultSlot
But it's not clear how to write the variant code to create this "image". I again had to go to the kitbook code base to find
DefaultSlot.variants.ts
Suggested solution
Digging through the codebase I found this very useful
VariantMeta
interface. Would be great to include it in the docs with the comments expanded as markdown text.I now found this "sort of documented" in the https://kitbook.vercel.app/docs/1-variants/refactor-variants page.
Alternative
No response
Additional context
No response