use-storybook 0.0.1

Storybook primitive metadata for RustUse
Documentation
  • Coverage
  • 30.34%
    27 out of 89 items documented1 out of 27 items with examples
  • Size
  • Source code size: 24.72 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.41 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-js
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-storybook

Storybook primitive metadata for component documentation, examples, stories, controls, and visual testing structure.

Experimental

use-storybook is experimental while use-js remains below 0.3.0.

Example

use use_storybook::{StorybookArgName, StorybookControlKind, StorybookStoryName};

let story = StorybookStoryName::new("Primary")?;
let arg = StorybookArgName::new("button.label")?;

assert_eq!(story.as_str(), "Primary");
assert_eq!(arg.as_str(), "button.label");
assert_eq!(StorybookControlKind::Select.as_str(), "select");
# Ok::<(), use_storybook::StorybookNameError>(())

Scope

  • Storybook version-family, framework, file-kind, story-kind, addon, config-file, control, and parameter labels.
  • Lightweight story name, component title, and argument name validation.

Non-goals

  • Storybook runtime behavior.
  • Browser rendering or test runner behavior.
  • Story parsing, MDX parsing, or framework integrations.
  • Shelling out to storybook, node, or package-manager tooling.

License

Licensed under either Apache-2.0 or MIT.