page DataMapcomponent { seo { title = "DataMap component" description = "Theme-aware, responsive data map component." } view {
W WRNexusJS
integrations component

DataMap

Theme-aware, responsive data map component.

@wrnexus/ui 0.3.57 props1 slots0 events

Usage

Components are auto-discovered. Use the component directly in any .wrn view:

<DataMap
  size="default"
  color="primary"
  title="Data Map"
  description="description"
  items="[]"
/>

Legacy mount name: data-component="DataMap".

Props and attributes

PropTypeRequirementDefault
sizestringOptional"default"
colorstringOptional"primary"
titlestringOptional"Data Map"
descriptionstringOptional""
itemsstringOptional[]
variantstringOptional"default"
classstringOptional""

Slots

  • default

Events

This component does not declare a custom event.

Source contract

Installed source: components/DataMap.wrn

component DataMap {
  props {
    size = "default"
    color = "primary"
    title = "Data Map"
    description = ""
    items = []
    variant = "default"
    class = ""
  }
  view {
        <section class="wire-next wire-next--color-{color} wire-next--size-{size} wire-next--data-map wire-next--variant-{variant} {class}">
      {#if title}<strong>{title}</strong>{/if}
      {#if description}<p>{description}</p>{/if}
      {#if items}<div class="wire-next__items">{#each items as item}<span>{item.label}</span>{/each}</div>{/if}
      <slot />
        </section>
    }
}
} }