You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
434 B
15 lines
434 B
import { tva } from '@gluestack-ui/nativewind-utils/tva';
|
|
import { isWeb } from '@gluestack-ui/nativewind-utils/IsWeb';
|
|
|
|
const gridBaseStyle = isWeb
|
|
? 'grid grid-cols-12'
|
|
: 'box-border flex-row flex-wrap justify-start';
|
|
const gridItemBaseStyle = isWeb ? 'w-auto col-span-1' : '';
|
|
|
|
export const gridStyle = tva({
|
|
base: `w-full ${gridBaseStyle}`,
|
|
});
|
|
|
|
export const gridItemStyle = tva({
|
|
base: `w-full ${gridItemBaseStyle}`,
|
|
});
|