@fluid-topics/ft-dialog
TypeScript icon, indicating that this package has built-in type declarations

1.1.40 • Public • Published

A dialog component for all UI usage.

Install

npm install @fluid-topics/ft-dialog
yarn add @fluid-topics/ft-dialog

Usage

import { html } from "lit"
import "@fluid-topics/ft-button"
import "@fluid-topics/ft-dialog"

function render() {
    return html`
        <ft-button @click=${ () => document.querySelector<FtDialog>("ft-dialog")?.open() }> Open dialog </ft-button>
        <ft-dialog
            heading="Dialog Title"
            icon="info"
            closeOnEsc
            closeOnClickOutside
            @opened-changed=${ (e: CustomEvent<{ opened: boolean }>) => console.log("opened changed ", e.detail) }
        >
            Dialog Content
        </ft-dialog>
    `
}

Readme

Keywords

Package Sidebar

Install

npm i @fluid-topics/ft-dialog

Weekly Downloads

258

Version

1.1.40

License

ISC

Unpacked Size

345 kB

Total Files

12

Last publish

Collaborators

  • antidot
  • mike.antidot