studiobakers / react-ui-toolkit

Bakers Studio's React-based UI Toolkit
MIT License
15 stars 2 forks source link

List: Should allow passing `role` attribute #28

Closed edizcelik closed 3 years ago

edizcelik commented 3 years ago

When I try to set the role as navigation for the List component, I'm faced with the following error:

Type '{ children: (tab: any, testid: string) => Element; role: string; "data-testid": string; items: any[]; customClassName: string; }' is not assignable to type 'IntrinsicAttributes & ListProps<any>'.
  Property 'role' does not exist on type 'IntrinsicAttributes & ListProps<any>'.ts(2322)