Skip to content

Commit bd80b39

Browse files
committed
✨ Add variant prop to Grid
1 parent 742b45d commit bd80b39

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/grid/index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,18 @@ import {
77
createGridItem,
88
boxContentAlignment,
99
boxItemsAlignment,
10-
themePath
10+
themePath,
11+
variant
1112
} from 'pss'
1213

1314
import { Box } from '../box'
1415

16+
const gridVariant = variant({ themeKey: 'gridStyle' })
1517
const gridContainer = createGridContainer()
1618
const gridItem = createGridItem()
1719

1820
const styles = combineStyles(
21+
gridVariant,
1922
gap,
2023
gridContainer,
2124
boxContentAlignment,

0 commit comments

Comments
 (0)