Skip to content

Commit 467819e

Browse files
authored
feat(col): add support for extra small column size (4) (#520)
1 parent 676afe7 commit 467819e

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/col/col.stories.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ const story = {
77
component: Col,
88
argTypes: {
99
className: { control: { type: "text" } },
10-
xs: { options: [8, 12, undefined] },
10+
xs: { options: [4, 6, 8, 12, undefined] },
1111
sm: { options: [2, 4, 6, 8, 10, 12, undefined] },
12-
md: { options: [4, 6, 8, 10, undefined] },
12+
md: { options: [4, 6, 8, 10, 12, undefined] },
1313
lg: { options: [6, 8, 10, undefined] },
14-
xsOffset: { options: [2, 3, undefined] },
14+
xsOffset: { options: [1, 2, 3, undefined] },
1515
smOffset: { options: [1, 2, 3, 4, undefined] },
1616
mdOffset: { options: [1, 2, 3, 4, undefined] },
1717
lgOffset: { options: [0, 1, 2, undefined] },

src/col/col.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import React from "react";
33
import { ColProps } from "./types";
44

55
const ExtraSmallClasses = {
6+
4: "w-1/3",
67
6: "w-1/2",
78
8: "w-2/3",
89
10: "w-5/6",

src/col/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export interface ColProps extends React.HTMLAttributes<HTMLDivElement> {
22
className?: string;
33
children?: React.ReactNode;
4-
xs?: 6 | 8 | 10 | 12;
4+
xs?: 4 | 6 | 8 | 10 | 12;
55
sm?: 2 | 4 | 5 | 6 | 8 | 10 | 12;
66
md?: 4 | 6 | 8 | 10 | 12;
77
lg?: 6 | 8 | 10;

0 commit comments

Comments
 (0)