New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@fluid-topics/ft-dialog

Package Overview
Dependencies
Maintainers
0
Versions
298
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fluid-topics/ft-dialog

A simple dialog component

1.1.112
npm
Version published
Weekly downloads
627
4.15%
Maintainers
0
Weekly downloads
 
Created
Source

A dialog component.

Install

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

Usage

import { html } from "lit"
import { customElement, FtLitElement } from "@fluid-topics/ft-wc-utils";
import "@fluid-topics/ft-button"
import "@fluid-topics/ft-dialog"

@customElement("my-element")
class MyElement extends FtLitElement {

    @state()
    private dialogOpen = false

    render() {
        return html`
            <ft-button @click=${ () => this.dialogOpen = true }>Open dialog</ft-button>
            <ft-dialog
                ?opened=${ this.dialogOpen }
                heading="Dialog Title"
                icon="info"
                closeOnEsc
                closeOnClickOutside
                @opened-changed=${ (e: CustomEvent<{ opened: boolean }>) => this.dialogOpen = e.detail.opened }>
                Dialog Content
            </ft-dialog>
        `
    }
}

Keywords

Lit

FAQs

Package last updated on 22 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts