1.2.27 • Published 9 months ago

@fluid-topics/ft-popover v1.2.27

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

A popover component.

Install

npm install @fluid-topics/ftds-popover
yarn add @fluid-topics/ftds-popover

Usage

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

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

    render() {
        return html`
            <ftds-popover
                    heading="Popover heading"
                    ?opened="false"
                    closeButtonLabel="close info"
                    openButtonLabel="more info"
                    openButtonTooltipPosition="bottom"
                    openButtonFamily="brand"
                    openButtonSize="medium"
                    @opened-changed=${ (e: CustomEvent<{
                        opened: boolean
                    }>) => console.log("opened changed ", e.detail) }
                >
                Exemple popover content
                <ftds-link slot="link" href="" variant="body-2-medium" family="brand" underlined>Example popover link</ftds-link>
            </ftds-popover>
        `
    }
}
1.2.27

9 months ago

1.2.26

9 months ago

1.2.25

9 months ago

1.2.24

9 months ago

1.2.23

10 months ago

1.2.22

10 months ago

1.2.21

10 months ago

1.2.20

10 months ago

1.2.19

10 months ago

1.2.17

10 months ago

1.2.16

11 months ago

1.2.15

11 months ago

1.2.14

11 months ago

1.2.13

11 months ago

1.2.12

11 months ago

1.2.11

11 months ago

1.2.10

11 months ago

1.2.9

11 months ago

1.2.8

11 months ago

1.2.7

12 months ago

1.2.6

12 months ago

1.2.5

12 months ago

1.2.4

12 months ago

1.2.3

12 months ago

1.2.2

12 months ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.121

1 year ago

1.1.120

1 year ago

1.1.119

1 year ago

1.1.118

1 year ago

1.1.117

1 year ago

1.1.116

1 year ago

1.1.115

1 year ago