Skip to content

feat: [docs] read props tables from the apsara types - #1013

Open
rohanchkrabrty wants to merge 1 commit into
fix/docs-type-tablefrom
feat/docs-props-generator
Open

rohanchkrabrty wants to merge 1 commit into
fix/docs-type-tablefrom
feat/docs-props-generator

Conversation

@rohanchkrabrty

@rohanchkrabrty rohanchkrabrty commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

A table without `path` reads the `@raystack/apsara` entry. `name` is an
exported type, and `type` can use the exported components and types, as
in `ComponentProps<typeof Dialog.Trigger>` or `AllProps<TourEvent>`.

The transform expands literal aliases such as `Radius` and
`(typeof RADII)[number]`, reads indexed access such as
`FlexProps['justify']`, shows the JSDoc of a union prop once, lets a
redeclared `@default` win over a cva variant, shows `className` as a
string, and hides `children` that has no JSDoc.

TypeTable gets its types and defaults as text from the server. An element
prop reached the client component as a lazy reference and showed
`[object Object]`.
@vercel

vercel Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
apsara Ready Ready Preview Nov 17, 2026 9:48am UTC

@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 13 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5ec28bce-f63a-4c6a-9d93-b366c24ec6ea
Commits

Reviewing files that changed from the base of the PR and between 959963a and 7ce6394.

Files selected for processing: 4

  • apps/www/src/components/mdx/mdx-components.tsx
  • apps/www/src/components/typetable/text.ts
  • apps/www/src/components/typetable/typetable.tsx
  • apps/www/src/lib/type-table.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@pkg-pr-new

pkg-pr-new Bot commented Nov 17, 2026

Copy link
Copy Markdown

Open in StackBlitz

pnpm add https://pkg.pr.new/@raystack/apsara@1013

commit: 7ce6394

This branch was successfully deployed

1 active deployment
Preview — 7ce63940 Deployed Nov 17, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant