Skip to content

Commit

Permalink
Merge pull request #72 from tone-row/add-grid-area
Browse files Browse the repository at this point in the history
fix(box): add grid-area prop
  • Loading branch information
rob-gordon authored May 20, 2021
2 parents 5a711e6 + 9aa2bd1 commit 0b3743b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions slang/src/Box/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export interface ResponsiveProps<
content?: string;
items?: string;
self?: string;
area?: string;
gap?: number;
columnGap?: number;
rowGap?: number;
Expand Down Expand Up @@ -245,4 +246,8 @@ export const boxConfig: ComponentConfig<ResponsiveProps>[] = [
cssFromVariable: (v) =>
`border-radius: calc(var(--smallest-border-radius-px) * ${v});`,
},
{
key: "area",
cssFromVariable: (v) => `grid-area: ${v};`,
},
];

1 comment on commit 0b3743b

@vercel
Copy link

@vercel vercel bot commented on 0b3743b May 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.