X Enterprises
Note

NoteToolbar

Search and filter bar for note feeds with collapsible filter panel and active filter chips.

Note

The Note category provides a complete activity/comment feed system. XANote is the individual card, XANoteFeed composes multiple notes with search and pagination, XANoteInput is the composition form, and XANoteToolbar handles search and filtering independently.

Components

<XANoteToolbar />

Search input and collapsible filter panel for note lists. Displays active filter chips with individual removal controls. Can be used standalone or is automatically embedded by XANoteFeed.

<XANoteToolbar
  v-model:search="search"
  v-model:filters="filters"
  searchable
  filterable
  search-placeholder="Search activity..."
  :filter-options="[
    { key: 'from', label: 'From', type: 'date' },
    { key: 'author', label: 'Author', type: 'select', options: authors }
  ]"
  @clear="clearAll"
/>

Props

PropTypeDefaultDescription
searchString''Current search query (v-model:search)
filtersObject{}Active filters (v-model:filters)
searchableBooleantrueShow search input
filterableBooleantrueShow filter toggle button
debounceNumber300Search debounce in ms
searchPlaceholderString'Search notes...'Search input placeholder
filterOptionsArray[]Filter definitions: [{ key, label, type, options?, placeholder? }]

Events

EventPayloadDescription
update:searchstringSearch query changed
update:filtersobjectFilters changed
clearAll filters cleared

AI Context

component: XANoteToolbar
package: "@xenterprises/nuxt-x-app"
category: Note
use-when: >
  XANoteToolbar is automatically embedded by XANoteFeed when searchable or
  filterable props are set. Use it standalone only when you need search/filter
  UI above a non-note list or need full layout control.
Copyright © 2026