Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default function IconA11Y() {
return (
<div>
{Icon.icons.map((iconName, idx) => (
))}
</div>
);
}
name="Example:"
defaultCode={`
`}
/>
);
card(
{props => (
)}
);
card(
{(props, i) => (
)}
name: 'accessibilityLabel',
type: 'string',
required: true,
description:
'String that clients such as VoiceOver will read to describe the element. Always localize the label.',
href: 'iconWithLabel',
},
{
name: 'color',
type: `"blue" | "darkGray" | "eggplant" | "gray" | "green" | "lightGray" | "maroon" | "midnight" | "navy" | "olive" | "orange" | "orchid" | "pine" | "purple" | "red" | "watermelon" | "white"`,
defaultValue: 'gray',
href: 'sizeColorCombinations',
},
{
name: 'icon',
type: Icon.icons.map(name => `'${name}'`).join(' | '),
description: `This allows us to type check for a valid icon name based on the keys from the list of icons shown below.`,
href: 'iconCombinations',
},
{
name: 'size',
type: `number | string`,
description: `Use a number for pixel sizes or a string for percentage based sizes`,
defaultValue: 16,
href: 'sizeColorCombinations',
},
{
name: 'inline',
type: 'boolean',
defaultValue: false,
},
{