Export Component type to user #2010
Closed
liruifengv
started this conversation in
Feature Requests
Replies: 2 comments 2 replies
-
Another alternative is to use the import type { ComponentProps } from 'astro/types';
import { Badge } from '@astrojs/starlight/components';
type Prop = ComponentProps<typeof Badge>; |
Beta Was this translation helpful? Give feedback.
2 replies
-
The |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What version of
starlight
are you using?0.24.2
What is your idea?
Export Component type to user.
User can import type from
@astrojs/starlight/components
Why is this feature necessary?
When the user wants to encapsulate Starlight component, must use
Parameters
:Do you have examples of this feature in other projects?
Participation
Beta Was this translation helpful? Give feedback.
All reactions