page CodeTabscomponent { seo { title = "CodeTabs component" description = "Reusable code tabs component." } view {
W WRNexusJS
content component

CodeTabs

Reusable code tabs component.

@wrnexus/ui 0.2.778 props1 slots0 events

Usage

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

<CodeTabs
  eyebrow="eyebrow"
  title="title"
  description="description"
  href="href"
  actionLabel="Learn more"
/>

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

Props and attributes

PropTypeRequirementDefault
eyebrowstringOptional""
titlestringOptional""
descriptionstringOptional""
hrefstringOptional""
actionLabelstringOptional"Learn more"
imagestringOptional""
altstringOptional""
classstringOptional""

Slots

  • default

Events

This component does not declare a custom event.

Source contract

Installed source: components/CodeTabs.wrn

component CodeTabs {
  props {
    class = ""
  }

  view {
        <div class="overflow-hidden rounded-2xl border border-[var(--wire-color-border,#e2e8f0)] bg-[var(--wire-color-surface,#ffffff)] shadow-[var(--wire-shadow-sm,0_1px_2px_rgb(0_0_0/0.05))] {class}">
        <slot />
        </div>
    }
}
} }