diff --git a/packages/ui/src/demo.tsx b/packages/ui/src/demo.tsx index b93dd2c7..85fd20c0 100644 --- a/packages/ui/src/demo.tsx +++ b/packages/ui/src/demo.tsx @@ -1,8 +1,13 @@ import type { Component } from "solid-js" -import { Button, Select, Tabs, Tooltip, Fonts, List } from "./components" +import { createSignal } from "solid-js" +import { Button, Select, Tabs, Tooltip, Fonts, List, Dialog, Icon, IconButton, Input, SelectDialog } from "./components" import "./index.css" const Demo: Component = () => { + const [dialogOpen, setDialogOpen] = createSignal(false) + const [selectDialogOpen, setSelectDialogOpen] = createSignal(false) + const [inputValue, setInputValue] = createSignal("") + const Content = (props: { dark?: boolean }) => (

Buttons

@@ -35,9 +40,6 @@ const Demo: Component = () => {

Select

setInputValue(e.currentTarget.value)} + /> + + +
+

Icons

+
+ + + + + + + + +
+

Icon Buttons

+
+ console.log("Close clicked")} /> + console.log("Check clicked")} /> + console.log("Search clicked")} disabled /> +
+

Dialog

+
+ + + Example Dialog + This is an example dialog with a title and description. +
+ + +
+
+
+

Select Dialog

+
+ + x} + onSelect={(option) => { + console.log("Selected:", option) + setSelectDialogOpen(false) + }} + placeholder="Search options..." + > + {(item) =>
{item}
} +
+
)