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

feat(theme): export VPImage #2814

Merged
merged 1 commit into from
Aug 18, 2023
Merged

feat(theme): export VPImage #2814

merged 1 commit into from
Aug 18, 2023

Conversation

kleisauke
Copy link
Contributor

@kleisauke kleisauke commented Aug 18, 2023

Resolves: #2813.

Example usage:

// .vitepress/theme/index.js
import DefaultTheme, { VPImage } from 'vitepress/theme';

export default {
  extends: DefaultTheme,
  enhanceApp({ app }) {
    // https://github.com/vuejs/vitepress/issues/2813#issuecomment-1683915241
    app.component('Image', VPImage);
  }
};

@brc-dd brc-dd merged commit f242140 into vuejs:main Aug 18, 2023
7 checks passed
@kleisauke kleisauke deleted the export-vp-image branch August 18, 2023 13:59
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Export VPImage as global component
2 participants