Skip to content

Function: useCategory()

useCategory(category?, posts?): ComputedRef<CategoryList>

Parameters

category?: MaybeRef<string>

posts?: Partial<PostFrontMatter>[] = []

Returns

ComputedRef<CategoryList>

Deprecated

use useCategories instead

Defined in

packages/valaxy/client/composables/categories.ts:177