Created Iframe component

This commit is contained in:
Gutts-n
2024-01-17 21:54:22 -03:00
parent a93b13f448
commit e5b0a85e48
2 changed files with 3 additions and 3 deletions

View File

@@ -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>
); );
} }

View File

@@ -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%`}
}, },
}; };