This example is built off of the Tanstack Table Kitchen Sink Example in the docs, but also includes sticky column pinning.
More importantly, it is refactored to have a nice ui with shadcn components, and be styled with tailwindcss, instead of the example which uses native css.
One final important thing, is that is shows how to dynamically generate the table without having to hardcode the columns.
The "select" column is always pinned to the left and has most of its actions disabled, but the "actions" column is pinned to the right and has most of its actions enabled.