Current solution is not accessible. The role is on the wrong element, you can't set it as a list, since list should not have a div as a child.
Maybe make it support as property? Then user could set it to be <ul> and use <li> as child. Just ensure there are no divs in between.