Skip to content

Vue components

These are live Vue examples. Astro renders their initial HTML and hydrates each island when it enters the viewport.

NwDialog binds open state with v-model:open and uses its title and description to name and describe the dialog. Try opening it and pressing Escape. Use NwDrawer when the overlay belongs at an edge of the screen.

<NwDialog
v-model:open="open"
title="Connection details"
description="Review the current connection."
trigger-label="Open dialog"
/>

Enter a host name without a protocol.

Off

Use v-model for the text and switch state. Pass NwField’s control slot binding to NwInput so the input gets its label, hint, and validation attributes.

<NwField v-slot="{ control }" label="Endpoint" hint="Enter a host name without a protocol.">
<NwInput v-model="endpoint" v-bind="control" />
</NwField>
Task Components
Take an action or label an item NwButton, NwIconButton, NwButtonGroup, NwBadge, NwChip
Edit a value NwField, NwInput, NwTextarea, NwInputGroup, NwCheckbox, NwRadioGroup, NwSwitch, NwSlider
Choose from options NwSelect, NwCombobox, NwDatePicker, NwColorPicker
Navigate or group content NwTabs, NwBreadcrumbs, NwPagination, NwDropdownMenu, NwNavbar, NwSidenav, NwLink, NwLayout, NwCard, NwList, NwDivider
Open an overlay or notify NwDialog, NwDrawer, NwPopover, NwTooltip, NwCommandPalette, NwAlert, NwToast, NwToaster
Show status or data NwProgress, NwMeter, NwSpinner, NwSkeleton, NwTable, NwDataTable, NwAccordion, NwStat, NwEmpty, NwSteps
Label inline content NwKbd, NwCode, NwAvatar
Set the theme NwProvider, NwFlavorSelect