import { Meta, ArgTypes } from '@storybook/blocks';
import CameraSelection from '../CameraSelection';
# CameraSelection
The `CameraSelection` component renders a `Select FormField` component with video input source options and the selected video input provided by the `useVideoInputs` hook.
By default, the first device will be selected from the device list returned by the `useVideoInputs` hook, otherwise a single option with _not found_ message will be shown.
The component depends on the `DevicesProvider`. If you are using `MeetingProvider`, `DevicesProvider` is rendered by default.
## Importing
```javascript
import { CameraSelection } from 'amazon-chime-sdk-component-library-react';
```
## Usage
```jsx
import React from 'react';
import {
MeetingProvider,
CameraSelection
} from 'amazon-chime-sdk-component-library-react';
const App = () => {
return (
);
};
```
## Props
### Dependencies
- `MeetingProvider`
- `DevicesProvider`, If you are using `MeetingProvider`, `DevicesProvider` is rendered by default
- `useVideoInputs`