Skip to content

[Design System] How to expose components built with preset? #728

Answered by astahmer
tunguyen-ct asked this question in Q&A
Discussion options

You must be logged in to vote

hey, the answers from discord were:

regarding that, we have an undocumented command that you could use "panda ship" in your UI library code to generate a JSON that you will then be able to import in your app code in the config.include and it will be treated as another source of code to extract and generate styles from

follow the same steps as the Design system guide (emitPackage with the same name in both sides)
from UI lib, generate a JSON with panda ship
from app, import that JSON in the config.include option

here's an actual example of a panda monorepo usage with a consuming app and multiple ui-lib providers
https://github.com/astahmer/panda-monorepo

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@anubra266
Comment options

Comment options

You must be logged in to vote
1 reply
@tunguyen-ct
Comment options

Answer selected by tunguyen-ct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants