vcc-ui
Version:
VCC UI is a collection of React UI Components that can be used for developing front-end applications at Volvo Car Corporation.
14 lines (12 loc) • 335 B
JavaScript
import React from 'react';
import { useFela } from 'react-fela';
import { Flex } from '../flex';
import { styles } from './styles';
export function Row({ children, align = 'start' }) {
const { theme } = useFela();
const styleProps = {
theme,
align,
};
return <Flex extend={styles.row(styleProps)}>{children}</Flex>;
}