mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
use callout markdown syntax
This commit is contained in:
@@ -15,13 +15,9 @@ layout: component
|
||||
|
||||
This component is used right here in the docs to render code examples.
|
||||
|
||||
<wa-callout variant="danger">
|
||||
<wa-icon name="circle-exclamation" slot="icon" variant="regular"></wa-icon>
|
||||
|
||||
Do not render untrusted content in a `<wa-code-demo>` element.
|
||||
This component renders the content as HTML, which introduces XSS vulnerabilities if used with untrusted content.
|
||||
|
||||
</wa-callout>
|
||||
:::warning
|
||||
Do not render untrusted content in a `<wa-code-demo>` element. This component renders the content as HTML, which introduces XSS vulnerabilities if used with untrusted content.
|
||||
:::
|
||||
|
||||
## Examples
|
||||
|
||||
|
||||
@@ -10,12 +10,9 @@ layout: component
|
||||
</wa-viewport-demo>
|
||||
```
|
||||
|
||||
<wa-callout variant="danger">
|
||||
<wa-icon name="circle-exclamation" slot="icon" variant="regular"></wa-icon>
|
||||
|
||||
:::warning
|
||||
A lot of the functionality of this component will not work on cross-origin iframes.
|
||||
|
||||
</wa-callout>
|
||||
:::
|
||||
|
||||
## Examples
|
||||
|
||||
|
||||
Reference in New Issue
Block a user