property CategorySwitcherProps.onSelect

Called with the slug of the category picked, or undefined for "All".

Type

(slug: string | undefined) => void

Usage

import { type CategorySwitcherProps } from "src/components/category/CategorySwitcher.tsx";