LayoutCard

Eine LayoutCard ist ein einfacher Container, der mit beliebigem Inhalt gefüllt werden kann.
Inhalt der Layout Card
import { LayoutCard } from "@mittwald/flow-react-components";

<LayoutCard>Inhalt der Layout Card</LayoutCard>

Best Practices


Kombiniere mit ...

TabNavigation

Platziere die TabNavigation in einer LayoutCard, um zwischen den Unterseiten zu navigieren. Der Inhalt der aktiven Seite wird darunter in derselben LayoutCard dargestellt.

Der Inhalt der aktiven Seite wird unterhalb der TabNavigation in derselben LayoutCard dargestellt.

Properties

PropertyTypeDefaultDescription
childrenReactNode-
elementType"div" | "main" | ExoticComponent<{}> | "footer" | "header"-The HTML element or React component rendered as the elements root.
wrapWithReactElement<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.

Accessibility

PropertyTypeDefaultDescription
aria-describedbystring-Identifies the element (or elements) that describes the object. @see aria-labelledby
aria-hiddenBooleanish-Indicates whether the element is exposed to an accessibility API. @see aria-disabled.
aria-labelstring-Defines a string value that labels the current element. @see aria-labelledby.
aria-labelledbystring-Identifies the element (or elements) that labels the current element. @see aria-describedby.

Auf dieser Seite