dialog/index.ts

svelte-commerce · src/lib/components/ui/dialog/index.ts · typescript · MIT
ui

Provides a set of composable dialog components including root, content, header, and footer for building accessible modal interfaces.

// Source: https://github.com/itswadesh/svelte-commerce | License: MIT | Copyright 2025 Misiki & contributors
// Provided via justclaw.it.com; keep this notice with the code.
import { Dialog } from 'bits-ui'

import Content from './dialog-content.svelte'
import Description from './dialog-description.svelte'
import Footer from './dialog-footer.svelte'
import Header from './dialog-header.svelte'
import Overlay from './dialog-overlay.svelte'
import Root from './dialog-root.svelte'
import Title from './dialog-title.svelte'

const Trigger: typeof Dialog.Trigger = Dialog.Trigger
const Close: typeof Dialog.Close = Dialog.Close
const Portal: typeof Dialog.Portal = Dialog.Portal

export {
	Root,
	Title,
	Portal,
	Footer,
	Header,
	Trigger,
	Overlay,
	Content,
	Description,
	Close,
	//
	Root as Dial

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key