ARIA can make custom widgets accessible, but the first rule of ARIA is don't use ARIA. Reach for a native HTML element first; add ARIA only when nothing native fits.
ARIA Authoring Practices Guide — Read Me First
WCAG 4.1.2 — Name, Role, Value (Level A)