Theme: ← Übersicht Tokens

Docs-Hero

Einstiegs-Hero fuer Dokumentationen im Syntax-Stil: Navy-Band (color.code.*-Welt) mit Schaltkreis-Raster und Glow-Knoten, Eyebrow, Titel, Leadtext, Aktions-Pills und Code-Fenster rechts

Blocks v1.3.1 Einstieg WebsiteApp section.docs-hero

Nutzt: component.code-block

Beispiele

Mit Code-Beispiel

Invisible Docs

Ein UI-Framework für alles, was tricoma zeigt

Zentral definierte Bausteine, über Tokens umgestaltbar — konsumiert von Code und Dokumenten.

beispiel.php
echo invisible_render_id('ui.button', [
    'label' => 'Speichern',
]);
Nur Text

Die zwei Türen

PHP-Bibliothek für Anwendungen, Surface-JSON für redaktionelle Seiten.

Eigenschaften

PropTypDefaultBuilder-Label
eyebrowstring""Eyebrow (Zeile ueber dem Titel)
title *string—Titel
headingLevelstring: 1 | 2"1"Ueberschriftenebene des Titels
leadstring""Leadtext
actionsarray[]Aktionen
codestring""Code-Beispiel (optional, rechts)
filenamestring""Dateiname des Beispiels
codeStylestring: block | terminal"block"Darstellung des Codes
codeSamplesarray[]Code-Beispiele (Terminal)
paddingstring: standard | none | sm | md | lg | xl"standard"Innenabstand (standard = Baustein-Wert, schlaegt Eigenabstand)
marginstring: standard | none | sm | md | lg | xl"standard"Aussenabstand
borderstring: standard | none | hairline | strong"standard"Rahmen
radiusstring: standard | none | control | surface | pill"standard"Ecken-Rundung
textColorstring""Textfarbe (Token; leer = Standard)
backgroundColorstring""Hintergrundfarbe (Token; leer = Standard)
shadowstring: standard | none | sm | md | lg"standard"Schatten
widthstring: standard | container | full"standard"Breite (full = Band aus dem Container, container = im Container)
heightstring: standard | half | full"standard"Hoehe (full = Bildschirmhoehe, Inhalt zentriert)
backgroundImagestring""Hintergrundbild (https-URL oder /pfad; leer = keins)
backgroundDimstring: standard | light | medium | strong"standard"Bild abdunkeln (Lesbarkeit; standard = aus)
backgroundFixedbooleanfalseBild steht fest beim Scrollen (Parallax)
alignSelfstring: standard | start | center | end"standard"Ausrichtung im Elternteil
anchorstring""Anker-ID (Sprungziel, z. B. fuer Nav-Links)

* Pflicht-Prop

Events & Slots

Events: ⚡ navigate — im Surface per on: {<event>: {action, params}} verdrahtbar.

Stellschrauben (Komponenten-Tokens)

Ebene 3 — aus dem CSS generiert (Registry). Umverdrahtbar per Hüllen-Komposition, ohne Markup-Eingriff; künftige Regler-Quelle des Component Builders.

TokenDefault
--docshero-code-mutedvar(--color-code-muted)
--docshero-code-propertyvar(--color-code-property)
--docshero-code-surfacevar(--color-code-surface)
--docshero-code-surface-raisedvar(--color-code-surface-raised)
--docshero-code-textvar(--color-code-text)
--docshero-code-variablevar(--color-code-variable)
--docshero-radius-fullvar(--radius-full)

Genutzte Design-Tokens

border.hairlinecolor.code.bordercolor.code.commentcolor.code.keywordcolor.code.mutedcolor.code.numbercolor.code.propertycolor.code.stringcolor.code.surfacecolor.code.surface-raisedcolor.code.textcolor.code.variablecolor.status.dangercolor.status.successcolor.status.warningduration.fasteasing.standardelevation.overlayfont.family.defaultfont.family.displayfont.family.monoleading.baseleading.tightradius.fullradius.surfacesize.10size.12size.2size.3size.4size.5size.6size.8text.lgtext.mdtext.smweight.boldweight.semibold

LLM-Notizen

section.docs-hero

Einstiegs-Hero für Dokumentationen im Syntax-Stil: dunkles Band mit Eyebrow, Titel, Leadtext, Aktions-Pills und einem Code-Fenster rechts.

Wann nutzen

  • Startband einer technischen Doku oder API-Landingpage, wenn ein Code-Beispiel Teil des Aufmachers ist.
  • Für Marketing-Hero ohne Code eher section.hero-centered oder section.hero.

Wichtige Props

  • title * = Titel (max. 160)
  • eyebrow = Zeile über dem Titel (max. 80)
  • lead = Leadtext (max. 500)
  • actions = Array aus {label*, href*, variant?}, variant = primary | secondary (Default secondary)
  • code = Code-Beispiel für das rechte Fenster
  • filename = Dateiname des Beispiels

Beispiel-Node

{ "definition": "section.docs-hero", "props": { "eyebrow": "Schnellstart", "title": "In Minuten produktiv", "lead": "Installiere das SDK und lege los.", "actions": [{ "label": "Loslegen", "href": "/start", "variant": "primary" }], "code": "npm install @acme/sdk", "filename": "terminal" } }

Hinweise

  • Feuert navigate bei Klick auf eine Aktion.
  • Nutzt intern component.code-block für die Darstellung des Beispiels.