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: add vp-raw container #1104

Merged
merged 4 commits into from Aug 31, 2022
Merged

feat: add vp-raw container #1104

merged 4 commits into from Aug 31, 2022

Conversation

brc-dd
Copy link
Member

@brc-dd brc-dd commented Aug 2, 2022

fixes #591, fixes #199

Trying to support this syntax:

::: raw
No styles and router interception here.
See the related issues for use-cases.
Required mainly when documenting components.
:::

Alternatively:

<div class="vp-raw">
Above `::: raw` syntax is equivalent to this.
Will work on any element, not-necessarily `div`,
just looking for the `vp-raw` class here.
<div>

Class can be added directly to components too:

<Foo class="vp-raw" other="props" />

(if the component can handle that, i.e. adds class
to root element -- no inheritAttrs stuff is there.)

TODO:

  • Either document this (#199 (comment)) or provide an option to enable style isolation.
  • Update docs.

@brc-dd brc-dd marked this pull request as ready for review August 2, 2022 15:16
@brc-dd brc-dd merged commit 9a6e1ea into main Aug 31, 2022
@brc-dd brc-dd deleted the feat/vp-raw branch August 31, 2022 03:20
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant