Preview
Renders a preview of different types (image, video, audio or an iframe for any other types) from a source URL
- Import
import { Preview } from '@smile/haring-react';
- Source View Source Code
- Package @smile/haring-react
- Storybook Storybook
Storybook Docs
Props
Name | Type | Default | Description |
---|---|---|---|
url * | string | - | Source url |
defaultAspectRatio | number | - | Default default aspect ratio of preview |
defaultHeight | number | - | Default height of the preview |
defaultMimeType | string | - | Default mime type of the preview |
defaultWidth | number | - | Default width of the preview |