@radixdlt/web-components
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i @radixdlt/web-components

Weekly Downloads

1

Version

1.0.0

License

SEE LICENSE IN RADIX-SOFTWARE-EULA

Unpacked Size

79 kB

Total Files

18

Last publish

Collaborators

  • javier-rdx
  • rdxrussell
  • bryanrdxworks
  • radixpublishing-owner
  • alex-rdx
  • aleworm