react-zoom-pan-pinch
Version:
Zoom and pan html elements in easy way
33 lines (23 loc) • 708 B
text/mdx
import { Meta, Story, ArgsTable, Canvas } from "@storybook/addon-docs/blocks";
import { action } from "@storybook/addon-actions";
import { TransformComponent, TransformWrapper } from "components";
import { argsTypes } from "../../types/args.types";
import { Example } from "./example";
export const Template = (args) => (
<div style={{ width: "80vw", height: "80vh" }}>
<Example {...args} />
</div>
);
<Meta
title="Examples/Responsive Image"
component={TransformWrapper}
argTypes={argsTypes}
/>
<br />
<Canvas>
<Story name="Responsive Image">{(args) => <Template {...args} />}</Story>
</Canvas>
<ArgsTable story="Responsive Image" />