import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
const data: ReferenceEntityTemplateSchema = {
name: 'Icon',
description:
'Icons are pictograms or graphic symbols. They can act as wayfinding tools or as a means of communicating functionality.',
thumbnail: 'icon-thumbnail.png',
requires: '',
isVisualComponent: true,
type: '',
definitions: [
{
title: 'IconProps',
description: '',
type: 'IconProps',
},
],
category: 'Components',
subCategory: 'Media',
defaultExample: {
image: 'icon-default.png',
codeblock: {
title: 'Basic Icon',
tabs: [
{
title: 'React',
code: '../../../../checkout-ui-extensions-react/src/components/Icon/examples/basic-icon.example.tsx',
language: 'tsx',
},
{
title: 'JS',
code: './examples/basic-icon.example.ts',
language: 'js',
},
],
},
},
subSections: [
{
type: 'Generic',
anchorLink: 'icons',
title: 'Icons',
sectionContent:
'
',
},
{
type: 'Generic',
anchorLink: 'appearance',
title: 'Appearance',
sectionContent:
'| Value | Description |\n| --- | --- |\n| "accent" | Conveys emphasis and draws attention to the element. |\n| "interactive" | Conveys that the element is pressable, hoverable or otherwise interactive. |\n| "subdued" | Conveys a subdued or disabled state for the element. |\n| "info" | Conveys that the element is informative or has information. |\n| "success" | Convey a successful interaction. |\n| "warning" | Convey something needs attention or an action needs to be taken. |\n| "critical" | Conveys a problem has arisen. |\n| "monochrome" | Takes the color of its parent.|',
},
],
related: [],
};
export default data;