Skip to main content
PROYECTOVIVIANA

Flex

The props declared for Flex, generated from the types @proyecto-viviana/ui ships.

Import

import { Flex } from "@proyecto-viviana/ui";

Props

Props for Flex in @proyecto-viviana/ui
PropTypeDefaultDescription
direction'row' | 'column' | 'row-reverse' | 'column-reverse''row'The flex direction.
gapstring | number'0'The gap between items. Accepts a t-shirt size, a number (spacing scale), or a raw CSS length.
wrapfalse | true | 'wrap' | 'nowrap' | 'wrap-reverse'falseWhether items should wrap.
alignItems'start' | 'end' | 'center' | 'stretch' | 'baseline'—The alignment of items.
justifyContent'start' | 'end' | 'center' | 'between' | 'around' | 'evenly'—The justification of items.
inlinefalse | true—Whether the flex container is inline.
classstring—Additional CSS class name.
styleJSX.CSSProperties—Additional inline styles.
childrennumber | boolean | RenderedElement | ArrayElement | (string & {}) | Node | JSX.ArrayElement—The content.

Declared in packages/viviana-ui/src/layout/Flex.tsx.

Grid props

Props for Grid in @proyecto-viviana/ui
PropTypeDefaultDescription
columnsstring | number—The number of columns, or a grid-template-columns value.
rowsstring | number—The number of rows, or a grid-template-rows value.
gapstring | number—The gap between items. Accepts a t-shirt size, a number (spacing scale), or a raw CSS length.
columnGapstring | number—The column gap.
rowGapstring | number—The row gap.
areasstring[]—Named grid areas (grid-template-areas).
alignItems'start' | 'end' | 'center' | 'stretch'—The alignment of items.
justifyItems'start' | 'end' | 'center' | 'stretch'—The justification of items.
inlinefalse | true—Whether the grid is inline.
classstring—Additional CSS class name.
styleJSX.CSSProperties—Additional inline styles.
childrennumber | boolean | RenderedElement | ArrayElement | (string & {}) | Node | JSX.ArrayElement—The content.

Declared in packages/viviana-ui/src/layout/Grid.tsx.

Props marked solidaria or solidaria-components come from the headless layer underneath and behave the same in both registers. Components that wrap a DOM element also accept that element's standard attributes, which are left out here on purpose — listing them would bury the props that are actually ours.