primevue-mirror/doc/introduction/PassThroughDoc.vue

10 lines
744 B
Vue
Raw Normal View History

2023-12-26 21:24:05 +00:00
<template>
<DocSectionText v-bind="$attrs">
<p>
PassThrough is an innovative API to provide access to the internal DOM elements to add arbitrary attributes. In general, traditional UI component libraries encapsulate UI and logic with limited APIs that makes the developers dependant on
the library maintainer to extend this API by adding new props or events. With <NuxtLink to="/passthrough">PassThrough</NuxtLink> this limitation has been eliminated since, you'll be able to access the internal of the components to add
events and attributes. Some common use-cases are adding test attributes, additional aria attributes, custom events and styling.
</p>
</DocSectionText>
</template>