UNPKG

@sandlada/vue-mdc

Version:

![Vue MDC Logo](https://raw.githubusercontent.com/sandlada/vue-mdc/refs/heads/main/docs/vue-mdc-cover.png)

48 lines 1.27 kB
/** * @license * Copyright 2025 Sandlada & Kai Orion * SPDX-License-Identifier: MIT */ import type { ExtractPublicPropTypes, PropType } from 'vue'; export declare const ElevationLevel: { readonly Level0: 0; readonly Level1: 1; readonly Level2: 2; readonly Level3: 3; readonly Level4: 4; readonly Level5: 5; }; export type TElevationLevel = typeof ElevationLevel[keyof typeof ElevationLevel]; export declare const props: { /** * 阴影级数, 取值在0到5之间, 包括0和5 * * 请确保**父元素的position为relative**, 并且父元素必须拥有大小 * * + level * - 0 * - 1 * - 2 * - 3 * - 4 * - 5 * * 可以导入枚举对象ElevationLevel来传入大小 * @example * ```html * <div class="relative w-[32px] h-[32px]"> * <glare.elevation :level="ElevationLevel.Level3"></glare.elevation> * </div> * ``` * * @default 0 */ level: { type: PropType<TElevationLevel>; default: 0; validator(value: number): boolean; }; }; export type TElevationProps = ExtractPublicPropTypes<typeof props>; export type TElevationSlots = {}; //# sourceMappingURL=elevation.definition.d.ts.map