Calm motion: animations on this site only fade, with no movement
Portfolio grid
Work in a grid with filter buttons by kind
Shows the work of a studio, a designer, or a photographer, so visitors can find the kind of work they need.
Basic
worksis the list. Each work has anid, atitle, akind, animage, and optionalimage-alt,href, andyear.- The filter buttons come from the kinds in the list, after "All". The pressed button shows in dark and has
aria-pressed. v-model:filterholds the kind to show. An empty string shows all.- A status line says how many works show, and screen readers hear it when the filter changes.
- A work with
hrefis a link around the image and the title. - Change the words with
labelsor a label pack. The API table lists the keys.
Usage
ts
import { BlessPortfolioGrid } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
works* | BlessWork[] | — | |
labels | Partial<{ filter: string; all: string; count: (n: number) => string; }> | — | |
filter | string | "" | the kind to show; an empty string shows all |
Events
| Name | Payload | Description |
|---|---|---|
update:filter | [value: string] |