Created Iframe component
This commit is contained in:
@@ -9,6 +9,6 @@ export function Iframe({
|
|||||||
url, style
|
url, style
|
||||||
}: IframeProps) {
|
}: IframeProps) {
|
||||||
return (
|
return (
|
||||||
<iframe src={url} style={style ?? {}}></iframe>
|
<iframe src={url} style={style ?? { width: `100%`, height: `100%` }}></iframe>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ type Story = StoryObj<IframeProps>;
|
|||||||
export const Normal: Story = {
|
export const Normal: Story = {
|
||||||
name: 'Iframe',
|
name: 'Iframe',
|
||||||
args: {
|
args: {
|
||||||
url: 'https://ssen-smart-meter.datopian.workers.dev',
|
url: 'https://app.powerbi.com/view?r=eyJrIjoiYzBmN2Q2MzYtYzE3MS00ODkxLWE5OWMtZTQ2MjBlMDljMDk4IiwidCI6Ijk1M2IwZjgzLTFjZTYtNDVjMy04MmM5LTFkODQ3ZTM3MjMzOSIsImMiOjh9',
|
||||||
style: {width: `100%`}
|
style: {width: `100%`, height: `100%`}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user