UNPKG

storybook

Version:

Storybook: Develop, document, and test UI components in isolation

14 lines (12 loc) 413 B
// ../addons/docs/src/blocks/controls/helpers.ts var getControlId = (value, storyId) => { let base = value.replace(/\s+/g, "-"); return storyId ? `control-${storyId}-${base}` : `control-${base}`; }, getControlSetterButtonId = (value, storyId) => { let base = value.replace(/\s+/g, "-"); return storyId ? `set-${storyId}-${base}` : `set-${base}`; }; export { getControlId, getControlSetterButtonId };