UNPKG

@zag-js/svelte

Version:

The svelte wrapper for zag

12 lines (11 loc) 231 B
export function useRefs(refs) { const ref = { current: refs }; return { get(key) { return ref.current[key]; }, set(key, value) { ref.current[key] = value; }, }; }