🥄 Develop, test and document your React story components faster.
MIT License
Published by tajo 2 months ago
#568 b6d0f10
Thanks @hiddenist! - Exports meta.json types from library
#571 c98d1af
Thanks @wojtekmaj! - Automatically disable http2 when Vite proxy is used
Published by tajo 5 months ago
#562 8165a95
Thanks @tajo! - Add option to disable http2 when using https. We observed that some bigger Ladle instances throw ERR_HTTP2_PROTOCOL_ERROR errors after upgrading from Node18 to Node20. This setting can be used as a workaround.
#558 55de74a
Thanks @park-g! - Add option to set HMR host and port via the ladle config and update the docs with these options.
755fd68
Thanks @i-am-the-slime! - Allow export of stories in export blocksPublished by tajo 11 months ago
Published by tajo 11 months ago
213cbc8
Thanks @nulladdict! - Scope @reach/dialog styles in ladle.css to prevent leaking on user storiesPublished by tajo 11 months ago
#533 5b9f4ef
Thanks @tajo! - Upgrade to Vite5, MSW2, MDX3 and all other deps as well.
BREAKING changes
Published by tajo 12 months ago
c9be1d7
Thanks @LeelandClenista! - Export programmatic meta APIPublished by tajo 12 months ago
3ce9390
Thanks @chasestarr! - disable hmr when --noWatch flag is passed to serve commandPublished by tajo about 1 year ago
6138c7f
Thanks @chasestarr! - Add --noWatch option to serve commandPublished by tajo about 1 year ago
Published by tajo about 1 year ago
Published by tajo about 1 year ago
Published by tajo about 1 year ago
#481 8050652
Thanks @tajo! - Switch Ladle to SWC compiler by using react-plugin-swc as the default. The babel based one (react-plugin) can still be used by adding setting it up through vite.config.js.
#479 657329a
Thanks @tajo! - Convert StoryDefault type into interface, add hotkeys into Meta type, relax type of Meta.width
#495 7cc65f8
Thanks @tajo! - Don't use CSS transform for sidebar chevrons so it doesn't create layering (stacking context) issues
#442 da95b96
Thanks @hiddenist! - Changes Meta from a type to an interface so it can be extended by declaring a module
#441 1b048c4
Thanks @calloc134! - Fixed the type of the "ArgType" object so that options are properly loaded into the type
#486 0c3c5ff
Thanks @tajo! - Add meta.mockDate feature so stories can mock/fix Date() values, great for testing and snapshots
#483 b1983a4
Thanks @tajo! - Add better styling for both markdown and MDX elements everywhere.
#478 7650d11
Thanks @tajo! - Preserve number type for controls (includes select, radio...). Previously, we incorrectly turned these values into strings on change.
#484 35eaece
Thanks @tajo! - Set tab-size to 2 for the source code addon
Published by tajo about 1 year ago
Published by tajo about 1 year ago
Published by tajo about 1 year ago
#468 92ea9b1
Thanks @tajo! - Ladle is adding a few hotkeys to make your life easier:
/
or ⌘ cmd + p
- Focus search input in the sidebar⌥ opt + →
- Go to the next story⌥ opt + ←
- Go to the previous story⌥ opt + ↓
- Go to the next component⌥ opt + ↑
- Go to the previous componentc
- Toggle controls addond
- Toggle dark modef
- Toggle fullscreen modew
- Toggle width addonr
- Toggle right-to-left modes
- Toggle story source addona
- Toggle accessibility addonThese defaults can be customized through the configuration. Some stories might have utilize their own set of hotkeys. If you want to prevent conflicts with Ladle, you can disable all Ladle shortcuts for a specific story by using the meta
parameter:
export default {
meta: {
hotkeys: false,
},
};
Story.meta = {
hotkeys: false,
};
Published by tajo over 1 year ago
Published by tajo over 1 year ago
#449 d3e0200
Thanks @tajo! - Add args and argTypes to context for Storybook compat
#447 802b351
Thanks @tajo! - Pass legacy parameters through context into decorators (Storybook compat)
#450 7ce734a
Thanks @tajo! - Quicker side-navigation for deeply nested stories. The sub-tree is automatically expanded and the first story/link activated.
Published by tajo over 1 year ago