-
Notifications
You must be signed in to change notification settings - Fork 95
[wip] Table component #5003
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[wip] Table component #5003
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
||
.saltTable-tbody .saltTable-tr:hover, | ||
table.saltTable tbody tr:hover { | ||
background: var(--saltTable-tr-background-hover, var(--salt-selectable-background-hover)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would hover styles be desired? @origami-z
variant?: "primary" | "secondary"; | ||
}; | ||
export type TableProps = ComponentPropsWithoutRef<"table"> & { | ||
variant?: "primary" | "secondary"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
zebra is also available :)
import { useWindow } from "@salt-ds/window"; | ||
import { clsx } from "clsx"; | ||
import { type ComponentPropsWithoutRef, forwardRef } from "react"; | ||
import "ag-grid-community/styles/ag-grid.css"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ag grid not needed here i guess
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On top of design variant (primary/secondary/zebra), is there anything common could be beneficial? e.g., column width (fixed vs auto), sticky header, wrapping vs not, etc.? could brainstorm some first before implementing.
No description provided.