Renders the category picker of the dump creation dialog and the dump editor, and of the playlist forms.
f
CategorySelect(unnamed 0: CategorySelectProps): React.JSX.Element | null
Renders the categories of kind as toggle chips, any number of which may be
on. It renders nothing while the site has none.
I
CategorySelectProps
Passed to CategorySelect by DumpCreateModal and DumpEdit, and by
PlaylistCreateForm and PlaylistEditForm, which hold the selection and
send it as the dump's or playlist's categoryIds.
- disabled: boolean
-
kind: CategoryKind
The set it offers: dump categories for a dump, playlist ones for a playlist.
- onToggle: (id: string) => void
- selected: Set<string>
Usage
import * as mod from "src/components/category/CategorySelect.tsx";