Skip to content

Commit

Permalink
chore: fix demo
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardoperra committed Apr 9, 2023
1 parent 5d4a9cf commit dc82261
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@

<div align="center">

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

[![pnpm](https://img.shields.io/badge/maintained%20with-pnpm-cc00ff.svg?style=for-the-badge&logo=pnpm)](https://pnpm.io/)
[![turborepo](https://img.shields.io/badge/built%20with-turborepo-cc00ff.svg?style=for-the-badge&logo=turborepo)](https://turborepo.org/)
[![pnpm](https://img.shields.io/badge/maintained%20with-pnpm-cc00ff.svg?logo=pnpm)](https://pnpm.io/)
[![turborepo](https://img.shields.io/badge/built%20with-turborepo-cc00ff.svg?logo=turborepo)](https://turborepo.org/)
[![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)

> **Warning** This is Still WIP
Expand Down
21 changes: 21 additions & 0 deletions packages/playground/src/demo/Popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,27 @@ export function PopoverDemo() {
with SolidJS.
</PopoverContent>
</Popover>

<Popover isOpen={open()} onOpenChange={setOpen}>
<PopoverTrigger asChild>
<As component={Button} theme={"secondary"}>
Open (controlled)
</As>
</PopoverTrigger>
<PopoverContent title={"Title"}>About Kobalte A UI toolkit</PopoverContent>
</Popover>

<Popover placement={"bottom-start"}>
<PopoverTrigger asChild>
<As component={Button} theme={"secondary"}>
Custom position
</As>
</PopoverTrigger>
<PopoverContent title={"Title"}>
About Kobalte A UI toolkit for building accessible web apps and design systems
with SolidJS.
</PopoverContent>
</Popover>
</DemoSectionRow>
</div>
);
Expand Down

0 comments on commit dc82261

Please sign in to comment.