# gt-react: General Translation React SDK: RegionSelector URL: https://generaltranslation.com/ja/docs/react/api/components/region-selector.mdx --- title: RegionSelector description: RegionSelector コンポーネントのAPIリファレンス --- {/* 自動生成: 直接編集せず、代わりに content/docs-templates/ 内のテンプレートを編集してください。 */} ## 概要 `` コンポーネントは、ユーザーが自分のリージョンを選択するためのドロップダウンです。 これは、[`` コンテキスト](/docs/react/api/components/gtprovider) からリージョンデータを読み取るクライアントサイド コンポーネントです。 ## リファレンス ### 戻り値 ユーザーがリージョンを選択できる `` 要素にそのまま渡されます。 ## 例 ### 基本的な使い方 ```jsx title="MyComponent.jsx" copy import { RegionSelector } from 'gt-react'; export default function MyComponent() { return ; } ``` ### カスタムマッピングとプレースホルダーを使用する場合 ```jsx title="CustomRegion.jsx" copy import { RegionSelector } from 'gt-react'; export default function CustomRegion() { return ( ); } ``` *** ## 注意事項 * `` コンポーネントはクライアントサイドでのみ利用できます。 * リージョンセレクターの UI を完全にカスタマイズするには、[`useRegionSelector`](/docs/react/api/helpers/use-region-selector) Hook を使用します。 ## 次のステップ * カスタムのリージョンセレクターを作成するには、[`useRegionSelector`](/docs/react/api/helpers/use-region-selector)を参照してください。 * 現在のリージョンを取得するには、[`useRegion`](/docs/react/api/helpers/use-region)を参照してください。 * ロケール版については、[``](/docs/react/api/components/locale-selector)を参照してください。