所以我有一个脉轮UI图标按钮
<IconButton
aria-label="Left Arrow"
我想删除咏叹调标签--我为什么要这样做?因为IconButton位于树的aria-hidden
部分内,因此标签是多余的.
但如果我删除它,我会收到以下类型脚本投诉
../../node_modules/@chakra-ui/button/dist/icon-button.d.ts:23:5
web:tsc: 23 "aria-label": string;
web:tsc: ~~~~~~~~~~~~
web:tsc: '"aria-label"' is declared here.
我怎样才能制作脉轮图标按钮,而不会给它添加不必要的咏叹调标签.