App UI kits › Postbag › Search

Search

Type from: or has:attachment and they become filters; results show the match marked, with an empty state.

Search is a screen from Postbag, an app ui kit with 12 screens: An email app set like a letter-writer’s desk, where one swipe sorts a message and receipts add themselves up. Price: $5 for the whole pack.

Built with: filter tokens, match marks, empty state.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Search props

PropTypeDefaultDescription
darkboolean
autoplayboolean
photosWXPhotos
querystringQuery to start with, filters included (e.g. "from:theo has:attachment").
onOpen(id: string) => void
onCancel() => void
onTab(i: number) => void

Methods on the ref

Use it in React

import PostbagSearch from './PostbagSearch';

<PostbagSearch />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Postbag

Good for: Email app.