Data Table

Backend Example

Return dataframe from python function.

# src/yc_companies.py
import morph
from morph import MorphGlobalContext
from morph_lib.database import execute_sql

@morph.func
def yc_companies(context: MorphGlobalContext):
  data = execute_sql('select * from yc_companies', "DUCKDB")
  return data
npx shadcn@latest add https://morph-componennts.vercel.app/r/data-table.json

Examples

Single Row Selection

Multi Row Selection