import type { Component } from "solid-js"
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
Select
Tabs
Tab 1
Tab 2
Tab 3
Disabled Tab
Tab 1 Content
This is the content for the first tab.
Tab 2 Content
This is the content for the second tab.
Tab 3 Content
This is the content for the third tab.
Tab 4 Content
This tab should be disabled.
Tooltips
`Dynamic tooltip: ${new Date().toLocaleTimeString()}`} placement="top">
List
Input
Icons
Icon Buttons
console.log("Close clicked")} />
console.log("Check clicked")} />
console.log("Search clicked")} disabled />
Dialog
Select Dialog
x}
onSelect={(option) => {
console.log("Selected:", option)
setSelectDialogOpen(false)
}}
placeholder="Search options..."
>
{(item) => {item}
}
)
return (
<>
>
)
}
export default Demo