Skip to content

Commit dc0aa0d

Browse files
docs(iframe): remove transparency option and add chapter on how to do transparent iframes (#398)
1 parent a22b2f6 commit dc0aa0d

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed
3.98 KB
Loading

docs/widgets/iframe/index.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,20 @@ If you manage all of your own applications, you can usually change that.
5353
### Configuration
5454
<WidgetConfig configuration={iframeWidget.configuration} />
5555

56+
### Transparent iframes
57+
58+
To create a transparent iframe like below you can use the following html code and load it into your iframe:
59+
60+
```html
61+
<html style="color-scheme: dark;">
62+
<body style="background: none; display: flex; justify-content: center; align-items: center;">
63+
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/homarr.svg" width="90" height="90" />
64+
</body>
65+
</html>
66+
```
67+
68+
![transparent iframe](./img/transparent-iframe.png)
69+
5670
### Third party content
5771
:::warning
5872

docs/widgets/iframe/index.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@ export const iframeWidget: WidgetDefinition = {
2020
values: { type: 'boolean' },
2121
defaultValue: 'no',
2222
},
23-
{
24-
name: 'Allow transparency',
25-
description: 'Whether to allow the embedded content to have a transparent background.',
26-
values: { type: 'boolean' },
27-
defaultValue: 'no',
28-
},
2923
{
3024
name: 'Allow scrolling',
3125
description: 'Whether to allow the embedded content to be scrolled.',

0 commit comments

Comments
 (0)