Skip to content

Commit 0b3743b

Browse files
authored
Merge pull request #72 from tone-row/add-grid-area
fix(box): add grid-area prop
2 parents 5a711e6 + 9aa2bd1 commit 0b3743b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

slang/src/Box/props.ts

+5
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export interface ResponsiveProps<
3737
content?: string;
3838
items?: string;
3939
self?: string;
40+
area?: string;
4041
gap?: number;
4142
columnGap?: number;
4243
rowGap?: number;
@@ -245,4 +246,8 @@ export const boxConfig: ComponentConfig<ResponsiveProps>[] = [
245246
cssFromVariable: (v) =>
246247
`border-radius: calc(var(--smallest-border-radius-px) * ${v});`,
247248
},
249+
{
250+
key: "area",
251+
cssFromVariable: (v) => `grid-area: ${v};`,
252+
},
248253
];

0 commit comments

Comments
 (0)