Skip to content

Instantly share code, notes, and snippets.

@scbj
Created June 27, 2025 14:39
Show Gist options
  • Select an option

  • Save scbj/49b1b54c062b460cb2fa8f6bf98772b9 to your computer and use it in GitHub Desktop.

Select an option

Save scbj/49b1b54c062b460cb2fa8f6bf98772b9 to your computer and use it in GitHub Desktop.
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