임베드 앱

임베드 앱

임베딩 패턴

Drawer 패턴

import { DrawerView } from '@stripe/ui-extension-sdk/ui';
const SyncDrawer = ({ onClose }) => {
return (
<DrawerView title="Brevo 동기화 상태" onClose={onClose}>
<Box css={{ padding: 'large' }}>
<SyncStatusContent />
</Box>
</DrawerView>
);
};
import { ModalView } from '@stripe/ui-extension-sdk/ui';
const SetupModal = ({ onClose }) => {
return (
<ModalView title="Brevo 설정" onClose={onClose}>
<Box css={{ padding: 'xlarge' }}>
<SetupWizard />
</Box>
</ModalView>
);
};

UI 컴포넌트 라이브러리

import {
Box, Inline, Button, Banner, Badge,
TextField, Select, Divider, Spinner, Icon, Link,
} from '@stripe/ui-extension-sdk/ui';

컨텍스트 액세스

const MyView = ({ environment, userContext }: ExtensionContextValue) => {
const accountId = userContext?.account?.id;
const customerId = environment.objectContext?.id;
const mode = environment.mode; // 'live' or 'test'
return <Box>{/* 컴포넌트 */}</Box>;
};

다음 단계

Subscribe to updates

developer-docs

Drop your email or phone number — we'll send you what matters next.

AI 어시스턴트

안녕하세요! 문서에 대해 무엇이든 물어보세요.

Brevo로 무료로 시작하기