UNPKG

@lekseek/ui

Version:

Vue 3 components library

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