Search documentation of phoenix_kit

# PhoenixKitWeb.Components.Core.AWSRegionSelect (phoenix_kit v1.6.19)

View Source

AWS Region Select Component.

A component for selecting AWS regions with dynamic loading and search functionality. Provides a user-friendly dropdown with common regions and verification status.

## Features

- Dynamic region loading from AWS API
- Search and filter functionality
- Loading states and error handling
- Visual indicators for verification status
- Keyboard navigation support

## Usage

    <.aws_region_select
      id="aws-region"
      name="aws_settings[region]"
      value={@aws_settings.region}
      regions={@available_regions}
      selected_region={@selected_region}
      verifying={@verifying_credentials}
      verified={@credential_verification_status}
      phx-change="select_region"
      phx-blur="fetch_available_regions"
    />

# Summary

## Functions

aws_region_select(assigns)

# Functions

# aws_region_select(assigns)

## Attributes

- `id` (`:string`) (required)
- `name` (`:string`) (required)
- `value` (`:string`) (required)
- `regions` (`:list`) - Defaults to `[]`.
- `regions_loaded` (`:boolean`) - Defaults to `false`.
- `selected_region` (`:string`) - Defaults to `""`.
- `verifying` (`:boolean`) - Defaults to `false`.
- `verified` (`:atom`) - Defaults to `:pending`. Must be one of `:pending`, `:success`, or `:error`.
- `class` (`:string`) - Defaults to `""`.
- `phx_change` (`:string`) (required)