bootstrap-vue-next
Version:
Seamless integration of Vue 3, Bootstrap 5, and TypeScript for modern, type-safe UI development
11 lines (10 loc) • 602 B
TypeScript
import { MaybeRef, Ref } from 'vue';
/**
* Manages an ARIA live region message with a clear-then-set pattern.
*
* Screen readers only announce `aria-live` content on a transition from empty
* to non-empty text. By clearing the message first and then setting it in the
* next tick we guarantee that every file selection produces that empty→non-empty
* transition, even when the same file is selected again.
*/
export declare const useAriaLiveMessage: (selectedFiles: Ref<readonly File[]>, formatter: MaybeRef<((files: readonly File[]) => string) | undefined>) => Readonly<Ref<string, string>>;