import type { Component } from "solid-js"
import { createSignal } from "solid-js"
import {
Accordion,
Button,
Select,
Tabs,
Tooltip,
Fonts,
List,
Dialog,
Icon,
IconButton,
Input,
SelectDialog,
Collapsible,
} 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}
}
Collapsible
This is collapsible content that can be toggled open and closed.
It animates smoothly using CSS animations.
Accordion
What is Kobalte?
Kobalte is a UI toolkit for building accessible web apps and design systems with SolidJS.
Is it accessible?
Yes. It adheres to the WAI-ARIA design patterns.
Can it be animated?
Yes! You can animate the content height using CSS animations.
)
return (
<>
>
)
}
export default Demo