import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
const data: ReferenceEntityTemplateSchema = {
name: 'Grid',
description:
'Grid is used to lay out content in a matrix of rows and columns.',
thumbnail: 'grid-thumbnail.png',
requires: '',
isVisualComponent: true,
type: '',
definitions: [
{
title: 'GridProps',
description: '',
type: 'GridProps',
},
],
category: 'Components',
subCategory: 'Structure',
defaultExample: {
image: 'grid-default.png',
codeblock: {
title: 'Basic Grid',
tabs: [
{
title: 'React',
code: '../../../../checkout-ui-extensions-react/src/components/Grid/examples/basic-grid.example.tsx',
language: 'tsx',
},
{
title: 'JS',
code: './examples/basic-grid.example.ts',
language: 'js',
},
],
},
},
subSections: [
{
type: 'Generic',
anchorLink: 'accessibility-roles',
title: 'Accessibility roles',
sectionContent:
'| Value | Description |\n| --- | --- |\n| "main" | Used to indicate the primary content. |\n| "header" | Used to indicate the component is a header. |\n| "footer" | Used to display information such as copyright information, navigation links, and privacy statements. |\n| "section" | Used to indicate a generic section. |\n| "complementary" | Used to designate a supporting section that relates to the main content. |\n| "navigation" | Used to identify major groups of links used for navigating. |\n| "orderedList" | Used to identify a list of ordered items. |\n| "listItem" | Used to identify an item inside a list of items. |\n| "unorderedList" | Used to identify a list of unordered items. |\n| "separator" | Used to indicates the component acts as a divider that separates and distinguishes sections of content. |\n| "status" | Used to define a live region containing advisory information for the user that is not important enough to be an alert. |\n| "alert" | Used for important, and usually time-sensitive, information. |',
},
],
related: [
{
name: 'GridItem',
subtitle: 'Component',
url: 'grid',
type: 'Component',
},
],
};
export default data;