Skip to content

Instantly share code, notes, and snippets.

@mateusvahl
Created August 4, 2025 23:10
Show Gist options
  • Save mateusvahl/2115fdd1bf959f5a29927ab676b4398a to your computer and use it in GitHub Desktop.
Save mateusvahl/2115fdd1bf959f5a29927ab676b4398a to your computer and use it in GitHub Desktop.
import {
BlockSpacer,
BlockStack,
Card,
Disclosure,
Grid,
Heading,
Icon,
InlineStack,
Pressable,
View,
} from '@shopify/ui-extensions-react/customer-account';
export const Example = () => {
return (
<Card padding>
<Disclosure defaultOpen={true}>
<View position={{ type: 'sticky', blockStart: 0 }} background="base">
<Pressable toggles="content" minInlineSize="fill">
<Grid columns={['fill', 'auto']} spacing="base" blockAlignment="center">
<Heading>Example</Heading>
<InlineStack spacing="base" blockAlignment="center">
<Icon source="chevronDown" appearance="accent" />
</InlineStack>
</Grid>
</Pressable>
</View>
<BlockSpacer spacing="loose" />
<BlockStack spacing="base" id="content">
<View background="subdued" minBlockSize={100} />
<View background="subdued" minBlockSize={100} />
<View background="subdued" minBlockSize={100} />
<View background="subdued" minBlockSize={100} />
<View background="subdued" minBlockSize={100} />
</BlockStack>
</Disclosure>
</Card>
);
};
@mateusvahl
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment