Loading...
Loading...
Design and implement Shopify Admin interfaces using the Polaris Design System. Use this skill when building Shopify Apps, Admin extensions, or any interface that needs to feel native to Shopify.
npx skill4agent add toilahuongg/google-antigravity-kit shopify-polaris-designButtonLinkTextFielddiv@shopify/polaris@shopify/polaris-icons@shopify/app-bridge-react<AppProvider i18n={enTranslations}>titleprimaryAction<Page title="Products" primaryAction={{content: 'Add product', onAction: handleAdd}}>LayoutLayout.SectionLayout.AnnotatedSectionLayout.Sectionvariant="oneHalf"variant="oneThird"BlockStackInlineStackCard.SectionBlockStackgapResourceList<Text as="h2" variant="headingMd"><h2>FormLayoutTextFieldSelectCheckboxRadioButtonerroruseSaveBar<ContextualSaveBar>gappaddingalignjustifyvar(--p-color-bg-surface)var(--p-color-text-default)var(--p-space-400)var(--p-border-radius-200)import { Page, Layout, Card, BlockStack, Text, Button, InlineStack, Badge } from '@shopify/polaris';
export default function Dashboard() {
return (
<Page
title="Dashboard"
primaryAction={{content: 'Create Campaign', onAction: () => {}}}
secondaryActions={[{content: 'View Logs', onAction: () => {}}]}
>
<Layout>
<Layout.Section>
<Card>
<BlockStack gap="400">
<InlineStack align="space-between">
<Text as="h2" variant="headingMd">Recent Activity</Text>
<Badge tone="success">Active</Badge>
</InlineStack>
<Text as="p" tone="subdued">Everything is running smoothly.</Text>
</BlockStack>
</Card>
</Layout.Section>
<Layout.Section variant="oneThird">
<Card>
<BlockStack gap="200">
<Text as="h3" variant="headingSm">Quick Helper</Text>
<Button variant="plain">Read Documentation</Button>
</BlockStack>
</Card>
</Layout.Section>
</Layout>
</Page>
);
}style={{ margin: 10 }}<Box padding="400"><BlockStack gap="400">ContextualSaveBar<SkeletonPage><SkeletonBodyText>