UNPKG

@lekseek/ui

Version:

Vue 3 components library

15 lines (12 loc) 280 B
import { computed, PropType, Ref } from 'vue'; export const elevatedProps = { elevated: { type: Boolean as PropType<boolean>, default: false, }, }; export function useElevated (elevated: Ref) { return computed(() => ({ 'is-elevated': elevated.value, })); };