Zum Inhalt springen

Button

Button

Button Primitive mit Variants und Sizes.

Interaktives Control für primäre und sekundäre Aktionen.

  • Primäre CTAs mit variant="primary"
  • Sekundäre Aktionen mit secondary, outline oder ghost
  • Inline-Links mit variant="link"
  • Destruktive Aktionen (Löschen) mit variant="destructive"
  • Status-Labels (dafür Badge)
  • Gruppierte Inhalte (dafür Card)
  • destructive für normale Navigation
PropTypDefault
variantprimary | secondary | outline | ghost | destructive | linkprimary
sizesm | md | lgmd
hrefstring— (rendert <a>)
typebutton | submit | resetbutton
disabledbooleanfalse
classstring

Badge · Hero v1

  • Keine Hex-Farben (tw:bg-[#fff])
  • Prefix tw:, nie tw-
  • Keine Marken-Tokens in addxion-neon
  • destructive nicht für Links oder Navigation
---
import Button from '@addxion/components/Button';
---
<Button href="/docs/neon/">Get started</Button>
<Button variant="secondary">Secondary</Button>
<button class="tw:inline-flex tw:items-center tw:justify-center tw:font-medium tw:bg-primary tw:text-primary-foreground tw:px-4 tw:py-2 tw:rounded-md">
Primary
</button>
IDWahrheit
T-PKG-NEONConsumer-Einstieg: @addxion/neon, nicht @addxion/core
T-NEON-BRANDMarkenwerte in Consumer brand.css

Scope: Neon Button-Komponente — API und Verwendung.

  • Aus @addxion/neon/react importieren
  • Varianten und Tokens nicht in Consumern neu definieren