More control over padding of Box component
Open
Type: Feature Request
- Dominant language
- TypeScript
- Stars
- 165
- Forks
- 31
- PR merge metrics
- No merged PRs in 30d
Description
Hi
Box component has padding modifiers but each side/angle can have the same padding

Is it possible/suitable for adding additional modifiers to have different paddings on horizontal and vertical angles?
Something like:
```ts
type PaddingType = "xxs" | "xs" | "s" | "m" | "l" | "xl";
export type BoxPropsType = {
paddingY?: PaddingType;
paddingX?: PaddingType;
padding?: PaddingType;
};
```
Props can be separated with union types but I'm not sure that fits with the storybook.
Contributor guide
Assessment
This issue has not been assessed yet.