You can also specify the color of the button as a whole.
{
colors.map((color)=>(
<Buttonkey={color}sx={{color: color }}suffix={<RotatingArrow/>}>
<Boxas='span'sx={{textTransform:'capitalize'}}>
{color}
</Box>
</Button>
))
}
Or just specify the color for the icon.
{
colors.map((color)=>(
<Buttonkey={color}suffix={<RotatingArrowsx={{color: color }}/>}>
<Boxas='span'sx={{textTransform:'capitalize'}}>
{color}
</Box>
</Button>
))
}
You can pass an href to render a link using the same styling as our buttons. This will be rendered as an <a> element rather than a <button>. When using an href you can also pass the extra internal and tracking options used by the Link component.