UNPKG

@storybook/addon-docs

Version:

Document component usage and properties in Markdown

8 lines 238 B
import React from 'react'; export const anchorBlockIdFromId = storyId => `anchor--${storyId}`; export const Anchor = ({ storyId, children }) => /*#__PURE__*/React.createElement("div", { id: anchorBlockIdFromId(storyId) }, children);