mirror of
https://github.com/dzeiocom/components.git
synced 2025-07-31 09:01:57 +00:00
10
src/Image/Image.stories.tsx
Normal file
10
src/Image/Image.stories.tsx
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
import { Meta, Story } from '@storybook/react/types-6-0'
|
||||||
|
import React from 'react'
|
||||||
|
import Component from '.'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
title: 'DZEIO/Image',
|
||||||
|
component: Component
|
||||||
|
} as Meta
|
||||||
|
|
||||||
|
export const Image: Story<any> = (args: any) => <Component imageProps={{src: '/90-38.svg', width: 90, height: 38}} fullscreen {...args} />
|
@@ -69,6 +69,7 @@ export default class Image extends React.Component<Props, States> {
|
|||||||
priority
|
priority
|
||||||
quality={100}
|
quality={100}
|
||||||
{...this.props.imageProps}
|
{...this.props.imageProps}
|
||||||
|
layout={this.state.image ? 'fill' : this.props.imageProps.layout}
|
||||||
objectFit="contain"
|
objectFit="contain"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user