Primitive

Functionality onto alternative element types or your own Vue components.

When you are building a component, in some cases you might want to allow user to compose some functionalities onto the underlying element, or alternative element. This is where Primitive comes in handy as it expose this capability to the user.

Install

Usage

API

Props Type Default
as
AsTag | Component
div
asChild
boolean
false