-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
contribution welcomeThe team would welcome a contribution from the community for this issueThe team would welcome a contribution from the community for this issue
Description
Is your feature request related to a problem? Please describe.
I want to use Badge component in my custom theme. And the Badge component not exportd by vitepress/theme
So I can do this only:
import Theme from 'vitepress/theme'
export default {
...Theme,
enhanceApp(ctx) {
Theme.enhanceApp(ctx)
// Custom content
}
}Describe the solution you'd like
So I' d like to import Badge from vitepress/theme directly
import { Badge } from 'vitepress/theme'
export default {
...Theme,
enhanceApp(ctx) {
ctx.app.component('Badge', VPBadge);
// Custom content
}
}Describe alternatives you've considered
No response
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the docs.
- Read the Contributing Guidelines.
- Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.
Metadata
Metadata
Assignees
Labels
contribution welcomeThe team would welcome a contribution from the community for this issueThe team would welcome a contribution from the community for this issue