Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Apply VueUse composables in Vue 3/Nuxt projects to replace custom implementations with battle-tested utilities.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/useCssSupports.md
1---2category: Browser3---45# useCssSupports67SSR compatible and reactive [`CSS.supports`](https://developer.mozilla.org/docs/Web/API/CSS/supports_static).89## Usage1011```ts12import { useCssSupports } from '@vueuse/core'1314const { isSupported } = useCssSupports('container-type', 'scroll-state')15```1617## Type Declarations1819```ts20export interface UseCssSupportsOptions extends ConfigurableWindow {21ssrValue?: boolean22}23export interface UseCssSupportsReturn extends Supportable {}24export declare function useCssSupports(25property: MaybeRefOrGetter<string>,26value: MaybeRefOrGetter<string>,27options?: UseCssSupportsOptions,28): UseCssSupportsReturn29export declare function useCssSupports(30conditionText: MaybeRefOrGetter<string>,31options?: UseCssSupportsOptions,32): UseCssSupportsReturn33```34