xref: /expo/docs/ui/components/Table/Row.tsx (revision eebf9368)
1import { css } from '@emotion/react';
2import { theme } from '@expo/styleguide';
3import React, { PropsWithChildren } from 'react';
4
5type RowProps = PropsWithChildren<object>;
6
7export const Row = ({ children }: RowProps) => <tr css={tableRowStyle}>{children}</tr>;
8
9const tableRowStyle = css({
10  '&:nth-of-type(2n)': {
11    backgroundColor: theme.background.secondary,
12  },
13});
14