@arclux/arc-ui-vue
v4.2.0
Published
Vue 3 wrappers for ARC UI Web Components.
Downloads
761
Maintainers
Readme
@arclux/arc-ui-vue
Vue 3 component wrappers for ARC UI web components, with typed props and emits.
Auto-generated — this package is produced by Prism from the canonical source in
@arclux/arc-ui. Do not edit by hand.
Installation
npm install @arclux/arc-ui-vue @arclux/arc-ui litRequires vue >= 3.3.0.
Usage
<script setup>
import { Button, Card, Input } from '@arclux/arc-ui-vue';
</script>
<template>
<Button variant="primary" @click="console.log('clicked')">
Get Started
</Button>
<Card>
<h3>Card Title</h3>
<p>Card content.</p>
</Card>
<Input label="Email" type="email" placeholder="[email protected]" @arc-input="onInput" />
</template>Components are organized by tier and can be imported from subpaths:
import { Button } from '@arclux/arc-ui-vue/input';
import { Card } from '@arclux/arc-ui-vue/content';
import { AppShell } from '@arclux/arc-ui-vue/layout';Events
Each component declares its arc-* CustomEvents as typed emits, so you bind them like any Vue event (@arc-input, @arc-change, @arc-select, …). The handler receives the original CustomEvent; payloads are on event.detail.
Server-side rendering
The wrappers register custom elements on import, which requires a DOM. In SSR setups (e.g. Nuxt), render them client-side — for example inside <ClientOnly>.
Theming
Components read design tokens from CSS custom properties. Overriding the base accent tokens re-themes every component — see the theming guide:
:root {
--accent-primary: rgb(77, 126, 247);
--accent-primary-rgb: 77, 126, 247;
}