-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import React, { ReactNode, CSSProperties } from "react"; | ||
import clsx from "clsx"; | ||
|
||
interface ColumnsProps { | ||
children: ReactNode; | ||
className?: string; | ||
style?: CSSProperties; | ||
} | ||
// className will allow you to pass either your custom classes or the native infima classes https://infima.dev/docs/layout/grid. | ||
// style will allow you to either pass your custom styles directly, which can be an alternative to the "styles.module.css" file in certain cases. | ||
export function Columns({ children, className, style }: ColumnsProps) { | ||
return ( | ||
<div className="container center"> | ||
<div className={clsx("row", className)} style={style}> | ||
{children} | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
interface ColumnProps { | ||
children: ReactNode; | ||
className?: string; | ||
style?: CSSProperties; | ||
} | ||
export function Column({ children, className, style }: ColumnProps) { | ||
return ( | ||
<div className={clsx("col", className)} style={style}> | ||
{children} | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,3 +50,8 @@ | |
.secrettabs { | ||
display: none; | ||
} | ||
|
||
.full-width-table table { | ||
width: 100%; | ||
display: table; | ||
} |