Home > @shopware-pwa/composables > useNavigation
# useNavigation() function
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Composable for navigation. Options - IUseNavigation
Signature:
export declare function useNavigation(params?: {
type?: StoreNavigationType;
}): IUseNavigation;
# Parameters
Parameter | Type | Description |
---|---|---|
params | { type?: StoreNavigationType; } |
Returns:
# Example
// get main navigation
useNavigation()
// get footer navigation
useNavigation({ type: "footer-navigation" } )