Verwende Combine, um ...
- eine der unterstützten Kombinationen darzustellen.
- die Anordnung dem Designsystem zu überlassen.
<Combine> <Avatar> <Initials>Max Mustermann</Initials> </Avatar> <Text> <strong>Max Mustermann</strong> Organisationsinhaber </Text> </Combine>
Combine ist das fertige Pattern, Flex das freie Werkzeug. Prüfe deshalb zuerst, ob die gewünschte Anordnung schon als Kombination existiert – dann bleibt sie auch bei geändertem Inhalt und über alle Breakpoints korrekt.
Neben Avatar + Text unterstützt Combine die folgenden Kombinationen.
Der Button sitzt auf der Höhe des Eingabefelds – unabhängig davon, ob das Feld ein Label oder eine FieldDescription hat.
Beschriftet ein Tastenkürzel, etwa in einer Legende. Gehören mehrere Kbd zu einem Text, stehen sie alle in derselben Combine.
Mehrere Kbd stehen enger beieinander als Kbd und Text.
| Property | Type | Description |
|---|---|---|
children | ReactNode | |
className | string | The elements class name. |
wrapWith | ReactElement<unknown, string | JSXElementConstructor<any>> | A React element the component is wrapped with. The element is cloned and receives the component as its only child — useful to render the component inside a link, a tooltip trigger or any other wrapper without changing the surrounding markup. `null` takes a wrapper a surrounding props context set back off, the way `tunnel: null` does for a tunnel. |