埋め込みアプリ

埋め込みアプリ

埋め込みパターン

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>
);
};

Modalパターン

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>{/* component */}</Box>;
};

次のステップ

Subscribe to updates

developer-docs

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

AIアシスタント

こんにちは!ドキュメントについて何でもお聞きください。

Brevoで無料で始める