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: enhance Primitive component with SSR support and improved rende… #577

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

productdevbook
Copy link
Member

@productdevbook productdevbook commented Dec 1, 2024

  • Added new imports: computed, useSSRContext, vShow, and withDirectives from Vue.
  • Introduced a new boolean prop vapor with a default value of true.
  • Added a validator for the as prop to ensure it's either a string or an object.
  • Implemented useSSRContext for server-side rendering support.
  • Created computed properties: isTemplateElement and isSingleElement.
  • Developed two new rendering functions: renderElement and renderVaporElement with error handling and fallback mechanisms.
  • Utilized vShow directive to control element visibility.
  • Conditionally rendered elements based on the vapor prop.

Copy link
Contributor

github-actions bot commented Dec 1, 2024

Thank you for following the naming conventions! 🙏

@productdevbook productdevbook marked this pull request as draft December 1, 2024 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant