Verwende Combine, um ...
- eine der unterstützten Kombinationen darzustellen.
- die Anordnung dem Designsystem zu überlassen.
import { Combine, Avatar, Initials, Text, } from "@mittwald/flow-react-components"; <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.
| Property | Type | Default | 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. |
ref | Ref<HTMLSpanElement> | - | Allows getting a ref to the component instance. Once the component unmounts, React will set `ref.current` to `null` (or call the ref with `null` if you passed a callback ref). @see React Docs |
key | Key | - |