import type { Component } from "solid-js" import { createSignal } from "solid-js" import { Accordion, Button, Checkbox, 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 [checked, setChecked] = createSignal(false) const [termsAccepted, setTermsAccepted] = createSignal(false) const Content = (props: { dark?: boolean }) => (

Buttons

Select

setInputValue(e.currentTarget.value)} />

Checkbox

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}
}

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