Skip to content

Commit

Permalink
Updating formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 30, 2024
1 parent d80b042 commit 3b5c233
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions src/routes/(split)/components/popover/+page.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,26 +100,20 @@ next to an anchor — commonly a button — which initiates its display.

The popover placement will be below the anchor element, either from left to right (default)
or from right to left.
If the popover should overflow the viewport, it will be automatically resized to fit within the viewport,
If the popover should overflow the viewport, it will be automatically resized to fit within the viewport,
and the content will be scrollable.

```html

````html
```javascript
<script lang="ts">
let visible = false;
let button: HTMLButtonElement | undefined;
let visible = false;
let button: HTMLButtonElement | undefined;
</script>
<button class="primary"
bind:this={button}
on:click={() => (visible = !visible)}
>
Open Popover
<button class="primary" bind:this="{button}" on:click="{()" ="">
(visible = !visible)} > Open Popover
</button>
<Popover bind:visible anchor={button}>
This is a popover!
</Popover>
```
<Popover bind:visible anchor="{button}"> This is a popover! </Popover>
````

# Properties

Expand Down

0 comments on commit 3b5c233

Please sign in to comment.