🚹 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@maas/vue-primitive

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maas/vue-primitive

Vue component for passing attributes to slot content

Source
npmnpm
Version
1.2.0
Version published
Weekly downloads
206
-11.21%
Maintainers
2
Weekly downloads
 
Created
Source

đŸ„š Vue Primitive

📩 Install

pnpm install @maas/vue-primitive

đŸȘ„ Use

as

<template>
  <Primitive as="button" type="button" @click="handleClick">
    Click me
  </Primitive>
</template>
<button type="button">Click me</button>

asChild

<template>
  <Primitive as-child type="button" class="my-button" @click="handleClick">
    <button>Click me</button>
  </Primitive>
</template>
<button type="button" class="my-button">Click me</button>

🐛 Found a Bug?

If you see something that doesn’t look right, submit a bug report. See it. Say it. Sorted.

đŸ€ Credit

This package is mostly a port of Radix Vue’s Primitive component. The original concept of the asChild prop was invented by the creators of Radix Primitives as far as we know.

📄 License

MIT License © 2024-PRESENT Magic as a Service GmbH

Keywords

Vue

FAQs

Package last updated on 07 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts