tmp: v11 PopoverContent

This commit is contained in:
Gregor Wassmann 2023-04-02 22:06:09 +02:00 committed by Enrico Sacchetti
commit b4802196f0
No known key found for this signature in database
GPG key ID: 3374B89ECA60D796
10 changed files with 85 additions and 12 deletions

View file

@ -1,5 +1,5 @@
{
"total": 163,
"total": 164,
"components": [
{
"moduleName": "Accordion",
@ -9008,6 +9008,27 @@
"typedefs": [],
"rest_props": { "type": "Element", "name": "div" }
},
{
"moduleName": "PopoverContent",
"filePath": "src/Popover/PopoverContent.svelte",
"props": [
{
"name": "className",
"kind": "let",
"value": "null",
"isFunction": false,
"isFunctionDeclaration": false,
"isRequired": false,
"constant": false,
"reactive": false
}
],
"moduleExports": [],
"slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }],
"events": [],
"typedefs": [],
"rest_props": { "type": "Element", "name": "span" }
},
{
"moduleName": "ProgressBar",
"filePath": "src/ProgressBar/ProgressBar.svelte",

View file

@ -1,5 +1,9 @@
---
components: ["Popover", "PopoverContent"]
---
<script>
import { Popover } from "carbon-components-svelte";
import { Popover, PopoverContent } from "carbon-components-svelte";
import Preview from "../../components/Preview.svelte";
</script>
@ -8,9 +12,9 @@
By default, the position of the popover component is absolute.
<div data-outline>
Parent
<Popover open>
<div style="padding: var(--bx-spacing-05)">Content</div>
Parent
<PopoverContent style="padding: var(--bx-spacing-05)">Content</PopoverContent>
</Popover>
</div>