UNPKG

@nextcloud/vue

Version:
27 lines (26 loc) 743 B
/*! * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: AGPL-3.0-or-later */ /** * Get a binding object for all data-v-scopeid attributes that are supposed to be on the root node. * It allows to have scoped styles from parents in edge cases not covered by Vue: * - Teleport on the root * - Fragments * * @todo Do we need to support slotScopeIds for `:slotted()`? * * @example * ```ts * <script setup> * import { useScopeIdAttrs } from './useScopeIdAttrs.ts' * const scopeIdAttrs = useScopeIdAttrs() * </script> * <template> * <teleport to="body"> * <div v-bind="scopeIdAttrs" /> * </teleport> * </template> * ``` */ export declare function useScopeIdAttrs(): any;