@doc-blocks/responsive-story
v2.0.1
Published
Welcome to my `ResponsiveStory` component.
Downloads
160
Readme
@doc-blocks/responsive-story
Welcome to my ResponsiveStory component.
Installation
npm i @doc-blocks/responsive-story
# or with yarn
yarn add @doc-blocks/responsive-storyAdd the following to your preview-head.html.
<link
rel="stylesheet"
href="https://marvelapp.github.io/devices.css/assets/devices.min.css"
/>Usage
Provide the ID of a story to render in a iframe + mock device.
Example:
import { ResponsiveStory } from "@doc-blocks/responsive-story";
<ResponsiveStory id="components-row--basic-usage" />;