Skip to content
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

Export types for component props #2724

Open
stephenhandley opened this issue Jan 17, 2025 · 0 comments
Open

Export types for component props #2724

stephenhandley opened this issue Jan 17, 2025 · 0 comments
Assignees

Comments

@stephenhandley
Copy link

stephenhandley commented Jan 17, 2025

Description

Would be great if you could export types for component props in addition to the components so they can be re-used in wrapper components.

Problem Statement

Want to create wrapper components that leverage the types for component props in the generated components in components/ui.

Proposed Solution or API

Export the types for props of any exported components from generated code.

Example change for generated heading/index.ts line 220

// EDIT: export IHeadingProps
export { Heading, type IHeadingProps };

Alternatives

No response

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants