Quick Find
Install the component, then paste your configured usage. Your settings are included in the code below.
npx arclen-ui add quick-find --settings eyJ0aGVtZSI6ImRhcmsiLCJjb3JuZXIiOjEyLCJyb3dzIjozLCJzaG9ydGN1dCI6dHJ1ZSwicm93SGVpZ2h0Ijo2OCwib3BlbldpZHRoIjo0MjAsIm9wZW5EdXJhdGlvbiI6NTYwLCJob3ZlckR1cmF0aW9uIjoyNDAsImFjY2VudCI6IiNmNTRlMDAiLCJzaG93QXJ0d29yayI6dHJ1ZSwicGxhY2Vob2xkZXIiOiJGaW5kIGluIHdvcmtzcGFjZeKApiIsInRodW1ibmFpbFNpemUiOjQ0LCJzaG93RGVzY3JpcHRpb25zIjp0cnVlLCJub1Jlc3VsdHNUZXh0IjoiTm8gbWF0Y2hpbmcgaXRlbXMiLCJlbXB0eVJlY2VudHNUZXh0IjoiTm8gcmVjZW50IGl0ZW1zIiwic2hvd0RpdmlkZXJzIjp0cnVlLCJjaGlwR2FwIjoxNCwiZWRnZUZhZGUiOjQ4LCJob3ZlclRpbnQiOjEwLCJjbG9zZWRXaWR0aCI6MzAwLCJmaWVsZEhlaWdodCI6NTAsImZpZWxkSW5zZXQiOjE2LCJmaWVsZEdhcCI6MTAsImZpZWxkVGV4dFNpemUiOjE1LCJzZWFyY2hJY29uU2l6ZSI6MjQsImNsb3NlU2l6ZSI6MzAsImNsb3NlSWNvblNpemUiOjE2LCJzaG9ydGN1dFJhZGl1cyI6Niwic2hlZXRJbnNldCI6NiwiaGVhZGVySGVpZ2h0Ijo0MCwiaGVhZGluZ1NpemUiOjEyLjUsInJvd0luc2V0IjoxNiwiYXJ0d29ya0dhcCI6MTMsImRpdmlkZXJJbnNldCI6MTYsInJlc3VsdFRpdGxlU2l6ZSI6MTQuNSwicmVzdWx0VGl0bGVXZWlnaHQiOjU1MCwiZGVzY3JpcHRpb25TaXplIjoxMywidGV4dEdhcCI6MiwiaGlnaGxpZ2h0UmFkaXVzIjowLCJhcnR3b3JrSG92ZXJTY2FsZSI6MS4wNSwidHJhc2hTaXplIjoxOSwidHJhc2hCdXR0b25TaXplIjozMiwiaG92ZXJEYW1waW5nIjowLjkyNSwic3RyaXBIZWlnaHQiOjY0LCJjaGlwSGVpZ2h0IjozMiwiY2hpcFJhZGl1cyI6MjQsImNoaXBUZXh0U2l6ZSI6MTIsImNoaXBJbnNldCI6MTYsImNoaXBDb250cm9sU2l6ZSI6MjQsInJvd1N0YWdnZXIiOjQ1LCJyb3dEaXN0YW5jZSI6NiwicmVtb3ZhbER1cmF0aW9uIjoxNDUsImNoaXBEdXJhdGlvbiI6MjQwLCJyZWNlbnRIZWFkaW5nIjoiUmVjZW50bHkgb3BlbmVkIiwibWF0Y2hIZWFkaW5nIjoiTWF0Y2hpbmcgaXRlbXMiLCJjbGVhckxhYmVsIjoiQ2xlYXIgYWxsIiwibGlnaHRTaGVsbCI6IiNmZmZmZmYiLCJkYXJrU2hlbGwiOiIjMmEyYTJhIiwibGlnaHRQYXBlciI6IiNmNWY1ZjUiLCJkYXJrUGFwZXIiOiIjMjIyMjIyIiwibGlnaHRJbmsiOiIjMGQwZDBkIiwiZGFya0luayI6IiNmZmZmZmYiLCJsaWdodE11dGVkIjoiIzZiNmI2YiIsImRhcmtNdXRlZCI6IiM5OTk5OTkiLCJsaWdodEJvcmRlciI6IiNlOWU3ZTYiLCJkYXJrQm9yZGVyIjoiIzI2MjYyNiIsImxpZ2h0UmVtb3ZhbCI6IiNmZjNiMzAiLCJkYXJrUmVtb3ZhbCI6IiNmZjQ1M2EiLCJsaWdodEFjdGlvbiI6IiMwMDAwMDAiLCJkYXJrQWN0aW9uIjoiI2ZmZmZmZiIsImRpc21pc3NPbk91dHNpZGUiOnRydWUsImljb25TdHJva2UiOjJ9import { QuickFind } from "@/components/quick-find";
export default function Example() {
return <QuickFind {...{
"theme": "dark",
"corner": 12,
"rows": 3,
"shortcut": true,
"rowHeight": 68,
"openWidth": 420,
"openDuration": 560,
"hoverDuration": 240,
"accent": "#f54e00",
"showArtwork": true,
"placeholder": "Find in workspace…",
"thumbnailSize": 44,
"showDescriptions": true,
"noResultsText": "No matching items",
"emptyRecentsText": "No recent items",
"showDividers": true,
"chipGap": 14,
"edgeFade": 48,
"hoverTint": 10,
"closedWidth": 300,
"fieldHeight": 50,
"fieldInset": 16,
"fieldGap": 10,
"fieldTextSize": 15,
"searchIconSize": 24,
"closeSize": 30,
"closeIconSize": 16,
"shortcutRadius": 6,
"sheetInset": 6,
"headerHeight": 40,
"headingSize": 12.5,
"rowInset": 16,
"artworkGap": 13,
"dividerInset": 16,
"resultTitleSize": 14.5,
"resultTitleWeight": 550,
"descriptionSize": 13,
"textGap": 2,
"highlightRadius": 0,
"artworkHoverScale": 1.05,
"trashSize": 19,
"trashButtonSize": 32,
"hoverDamping": 0.925,
"stripHeight": 64,
"chipHeight": 32,
"chipRadius": 24,
"chipTextSize": 12,
"chipInset": 16,
"chipControlSize": 24,
"rowStagger": 45,
"rowDistance": 6,
"removalDuration": 145,
"chipDuration": 240,
"recentHeading": "Recently opened",
"matchHeading": "Matching items",
"clearLabel": "Clear all",
"lightShell": "#ffffff",
"darkShell": "#2a2a2a",
"lightPaper": "#f5f5f5",
"darkPaper": "#222222",
"lightInk": "#0d0d0d",
"darkInk": "#ffffff",
"lightMuted": "#6b6b6b",
"darkMuted": "#999999",
"lightBorder": "#e9e7e6",
"darkBorder": "#262626",
"lightRemoval": "#ff3b30",
"darkRemoval": "#ff453a",
"lightAction": "#000000",
"darkAction": "#ffffff",
"dismissOnOutside": true,
"iconStroke": 2
}} />;
}| Property | Type | Default |
|---|---|---|
themeTheme Options: light (Light), dark (Dark) | select | "light" |
cornerCorner radius 0–40Step 1 | number | 12 |
rowsRecent rows 0–4Step 1 | number | 3 |
shortcutKeyboard shortcut | boolean | true |
rowHeightRow height (px) 56–84Step 1 | number | 68 |
openWidthOpen width (px) 320–600Step 1 | number | 420 |
openDurationOpen duration (ms) 220–800Step 5 | number | 560 |
hoverDurationHover response (ms) 120–500Step 5 | number | 240 |
accentAccent | color | "#f54e00" |
showArtworkResult artwork | boolean | true |
placeholderField placeholder Up to 80 characters | text | "Find in workspace…" |
thumbnailSizeThumbnail size (px) 24–48Step 1 | number | 44 |
showDescriptionsShow result descriptions | boolean | true |
noResultsTextNo matches message Up to 140 characters | text | "No matching items" |
emptyRecentsTextEmpty recents message Up to 140 characters | text | "No recent items" |
showDividersResult dividers | boolean | true |
chipGapPill spacing (px) 0–28Step 1 | number | 14 |
edgeFadeEdge fade width (px) 0–80Step 1 | number | 48 |
hoverTintHover tint strength (%) 0–32Step 1 | number | 10 |
closedWidthClosed width (px) 200–420Step 1 | number | 300 |
fieldHeightField height (px) 44–72Step 1 | number | 50 |
fieldInsetLeft padding (px) 6–28Step 1 | number | 16 |
fieldGapIcon to input gap (px) 2–24Step 1 | number | 10 |
fieldTextSizeInput type size (px) 12–21Step 0.5 | number | 15 |
searchIconSizeSearch icon size (px) 14–32Step 1 | number | 24 |
closeSizeClose button size (px) 24–40Step 1 | number | 30 |
closeIconSizeClose icon size (px) 12–22Step 1 | number | 16 |
shortcutRadiusShortcut radius (px) 0–11Step 1 | number | 6 |
sheetInsetSheet inset (px) 0–18Step 1 | number | 6 |
headerHeightHeading height (px) 32–64Step 1 | number | 40 |
headingSizeHeading type size (px) 10–18Step 0.5 | number | 12.5 |
rowInsetResult left inset (px) 4–40Step 1 | number | 16 |
artworkGapArtwork to title gap (px) 2–26Step 1 | number | 13 |
dividerInsetDivider inset (px) 0–40Step 1 | number | 16 |
resultTitleSizeTitle size (px) 11–20Step 0.5 | number | 14.5 |
resultTitleWeightTitle weight 400–750Step 10 | number | 550 |
descriptionSizeDescription size (px) 10–17Step 0.5 | number | 13 |
textGapTitle to description gap (px) 0–9Step 1 | number | 2 |
highlightRadiusHighlight radius (px) 0–24Step 1 | number | 0 |
artworkHoverScaleArtwork hover scale (×) 1–1.3Step 0.01 | number | 1.05 |
trashSizeTrash icon size (px) 12–26Step 1 | number | 19 |
trashButtonSizeTrash button size (px) 26–44Step 1 | number | 32 |
hoverDampingHighlight spring damping 0.55–1.3Step 0.005 | number | 0.925 |
stripHeightStrip height (px) 48–88Step 1 | number | 64 |
chipHeightPill height (px) 26–44Step 1 | number | 32 |
chipRadiusPill radius (px) 0–24Step 1 | number | 24 |
chipTextSizePill type size (px) 10–17Step 0.5 | number | 12 |
chipInsetStrip side padding (px) 4–32Step 1 | number | 16 |
chipControlSizePill remove and count size (px) 18–28Step 1 | number | 24 |
rowStaggerNew result stagger (ms) 0–100Step 1 | number | 45 |
rowDistanceNew result rise (px) 0–24Step 1 | number | 6 |
removalDurationDeparting result fade (ms) 0–450Step 5 | number | 145 |
chipDurationPill movement (ms) 0–600Step 5 | number | 240 |
recentHeadingRecent section title Up to 80 characters | text | "Recently opened" |
matchHeadingSearch results title Up to 80 characters | text | "Matching items" |
clearLabelClear action label Up to 80 characters | text | "Clear all" |
lightShellOuter shell | color | "#ffffff" |
darkShellOuter shell | color | "#2a2a2a" |
lightPaperResults surface | color | "#f5f5f5" |
darkPaperResults surface | color | "#222222" |
lightInkPrimary text | color | "#0d0d0d" |
darkInkPrimary text | color | "#ffffff" |
lightMutedSecondary text | color | "#6b6b6b" |
darkMutedSecondary text | color | "#999999" |
lightBorderDividers and outlines | color | "#e9e7e6" |
darkBorderDividers and outlines | color | "#262626" |
lightRemovalRemoval icon and fade | color | "#ff3b30" |
darkRemovalRemoval icon and fade | color | "#ff453a" |
lightActionActive icon and clear action | color | "#000000" |
darkActionActive icon and clear action | color | "#ffffff" |
dismissOnOutsideClose when focus leaves | boolean | true |
iconStrokeIcon stroke (px) 1–3Step 0.1 | number | 2 |
Quick Find
A workspace search field with category filters, keyboard navigation, and local recent items. Its host reserves the height of the expanded workspace, so opening the field keeps surrounding content in place.
React
import { QuickFind } from './components/quick-find';
<QuickFind rows={3} onSelect={title => openWorkspaceItem(title)} />Component is an alias for QuickFind. The settings are individual props. className, style, and paused configure the wrapper and lifecycle. Selection passes the example item's title to the application.
HTML and vanilla
import { mount } from './components/quick-find/src/core';
import './components/quick-find/src/styles.css';
const search = mount(document.querySelector('#workspace-search')!, { corner: 12 }, undefined, {
onSelect(title) { console.log(title); },
});
search.update({ theme: 'dark' });Updates accept partial settings. The component also dispatches a bubbling quick-find-select event with detail.title. Call pause() to close and disable the field, resume() to activate it, and destroy() when removing the host.
Search and keyboard
Focus or click the input to open. Use the arrow keys to move through results and Enter to select. The shortcut toggles the workspace with Cmd+K or Ctrl+K when enabled. Escape clears a typed query first. Press Escape again to close and keep focus in the compact input. Clicking or tabbing outside closes the workspace. Closing preserves the current query and category. Selecting a result clears both and adds the item to the top of recents.
The category strip scrolls horizontally when its pills overflow. Adjust chipGap for spacing and edgeFade for the width of the fade at an edge with more content. Set edgeFade to 0 to turn the fade off. hoverTint adjusts the red tint on the highlighted result as a percentage.
The filter chips narrow results to pages, notes, or tools. Queries match title, category, keyword, and file extension, including dotted extensions such as .pdf. Escape clears the query. Reset search clears the query and category together. Each category chip has a separate remove button. The numbered Categories button restores all three chips. These choices are independent of recent items. Each recent row has its own labelled remove button. Clear all empties the recent list. Restore repopulates the starting list. Recent items live in memory for the lifetime of the mounted instance. A rows setting of zero hides recents and keeps text search and category filters available.
The combobox keeps the same input as the panel expands. The active result is announced through the listbox and is visible with pointer or keyboard navigation. Reduced motion opens and closes the panel immediately. Static markup displays a disabled field until the component mounts.
Configuring the search surface
openWidth caps the expanded panel in pixels. The panel also respects the width of its host. rowHeight changes the spacing, hover surface and remove-button alignment together. Set showArtwork to false for a text-only list. placeholder changes the field prompt, and accent colors the active controls.
openDuration sets the expansion time in milliseconds. The field remains editable as the results appear. hoverDuration controls how quickly the raised sheet catches the pointer or keyboard selection. Changing direction keeps its current velocity. When the list changes, retained items move to their new positions, new results enter in order, and removed entries briefly fade outside the accessibility tree.
<QuickFind openWidth={480} rowHeight={64} openDuration={380}
hoverDuration={220} accent="#795b48" placeholder="Find an asset…" />Result thumbnails and messages
thumbnailSize sets the folded-paper file icon between 24 and 48 pixels. Use showDescriptions={false} for a title-only list. Use showDividers={false} to hide the hairlines between results. These settings work independently of row height and artwork visibility.
noResultsText appears when a query or category has no matching items. emptyRecentsText appears when the recent list is empty. Both messages are announced to assistive technology. A blank message restores the default copy.
Tuning the open panel
Switch off **Close when focus leaves** to keep the search open while adjusting the inspector. Escape and the close button still work. Change **Field height**, **Heading height**, **Row height** and **Strip height** to tune density. The panel recalculates its height while preserving the active input and query. The inner corners follow the outer radius minus the sheet inset.
**Highlight spring damping** controls how much the highlight overshoots when it follows the pointer. **Hover response** controls how quickly it catches up. New result stagger, rise distance, removal fade and pill movement have their own controls. Each theme has its own outer shell, results surface, text, divider, active action and removal colors. The trash icon and hover fade share the removal color.
Icon credits
Functional icons come from Lucide. The bundled license includes the ISC and Feather MIT notices. Lucide
The preview runs the component’s own JavaScript. It respects reduced motion and pauses when off screen. The HTML bundle includes a static fallback.
Every setting in this panel comes from the component manifest. Preview size, pause and replay stay in the inspector.