Created
June 27, 2025 14:39
-
-
Save scbj/49b1b54c062b460cb2fa8f6bf98772b9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| export interface ColumnProps { | |
| label: string | |
| justify?: 'left' | 'center' | 'right' | 'stretch' | |
| fontFamily?: 'monospace' | |
| width?: 'auto' | `${number}fr` | |
| } | |
| export interface ColumnWithSlot extends ColumnProps { | |
| slotName: string | |
| } | |
| export interface ColumnWithProperty<T = unknown> extends ColumnProps { | |
| property: keyof T | |
| } | |
| export type Column<T = object> = ColumnWithProperty<T> | ColumnWithSlot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment