import styled from 'styled-components';
import { Meta, Story, Preview, Props } from '@storybook/addon-docs/blocks';
import { PhotoProvider, PhotoConsumer, PhotoSlider } from 'react-photo-view';
import 'react-photo-view/dist/index.css';
import {
photoImages,
ImageList,
ViewBox,
Button,
DefaultImage,
ControlledView,
} from '../src';
## 默认展示
{photoImages.map((item, index) => (
))}
## 两张预览
{photoImages.map((item, index) => (
{index < 2 ? : undefined}
))}
## 通过按钮触发
## 自定义加载失败
}>
## 受控 PhotoSlider
# Props