1.0.0 • Published 8 months ago

@radixdlt/web-components v1.0.0

Weekly downloads
-
License
SEE LICENSE IN RA...
Repository
github
Last release
8 months ago

License

Radix web components

Install

npm install @radixdlt/web-components

EULA

EULA

Props

  @property({
    type: String,
    reflect: true,
  })
  mode: Mode = Mode.light

  @property({
    type: String,
  })
  cookieName = 'eulaAccepted'

  @property({
    type: String,
  })
  url: string = ''

  @property({
    type: Boolean,
    reflect: true,
  })
  show = false

  @property({
    type: Boolean,
  })
  checked = false

Events

@onClose: CustomEvent<{ eulaAccepted: boolean }>

HTML

<radix-eula url="https://radixdlt.com" />

Typescript

import '@radixdlt/web-components'

const radixEulaElement = document.querySelector('radix-eula')!

radixEulaElement.show = true

const onClose = (event: Event) => {
  const { eulaAccepted } = (event as CustomEvent<{ eulaAccepted: boolean }>)
    .detail

  console.log({ eulaAccepted })
}

radixEulaElement.addEventListener('onClose', onClose)

License

The web components code is released under Apache 2.0 license. Binaries are licensed under the Radix Software EULA

1.0.0

8 months ago

0.1.2

8 months ago

0.1.1

8 months ago