Skip to content

Commit dc82261

Browse files
committed
chore: fix demo
1 parent 5d4a9cf commit dc82261

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44

55
<div align="center">
66

7-
# CodeUI
7+
# CodeUI - [CodeImage](https://github.com/riccardoperra/codeimage) UI Kit
88

9-
[![pnpm](https://img.shields.io/badge/maintained%20with-pnpm-cc00ff.svg?style=for-the-badge&logo=pnpm)](https://pnpm.io/)
10-
[![turborepo](https://img.shields.io/badge/built%20with-turborepo-cc00ff.svg?style=for-the-badge&logo=turborepo)](https://turborepo.org/)
9+
[![pnpm](https://img.shields.io/badge/maintained%20with-pnpm-cc00ff.svg?logo=pnpm)](https://pnpm.io/)
10+
[![turborepo](https://img.shields.io/badge/built%20with-turborepo-cc00ff.svg?logo=turborepo)](https://turborepo.org/)
11+
[![Netlify Status](https://api.netlify.com/api/v1/badges/bcc7a6d1-e9dc-4650-a465-ced9cd676f6b/deploy-status?style=for=t)](https://app.netlify.com/sites/codeui/deploys)
1112

1213
> **Warning** This is Still WIP
1314

packages/playground/src/demo/Popover.tsx

+21
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,27 @@ export function PopoverDemo() {
4141
with SolidJS.
4242
</PopoverContent>
4343
</Popover>
44+
45+
<Popover isOpen={open()} onOpenChange={setOpen}>
46+
<PopoverTrigger asChild>
47+
<As component={Button} theme={"secondary"}>
48+
Open (controlled)
49+
</As>
50+
</PopoverTrigger>
51+
<PopoverContent title={"Title"}>About Kobalte A UI toolkit</PopoverContent>
52+
</Popover>
53+
54+
<Popover placement={"bottom-start"}>
55+
<PopoverTrigger asChild>
56+
<As component={Button} theme={"secondary"}>
57+
Custom position
58+
</As>
59+
</PopoverTrigger>
60+
<PopoverContent title={"Title"}>
61+
About Kobalte A UI toolkit for building accessible web apps and design systems
62+
with SolidJS.
63+
</PopoverContent>
64+
</Popover>
4465
</DemoSectionRow>
4566
</div>
4667
);

0 commit comments

Comments
 (0)