> For the complete documentation index, see [llms.txt](https://docs.facephi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.facephi.com/docs.facephi-en/sdks/sdk-web/componentes/selphid-documentos/propiedades/documenttype.md).

# documentType

## Details

**Attribute:** `document-type`

**Type:** `DocumentType` | `DocumentType[]` | `string` | `string[]`

**Default value:** `[DocumentType.Autodetect]`

### DocumentType

| Member          | Value | Description                          |
| --------------- | ----- | ------------------------------------ |
| `Autodetect`    | `0`   | Automatic detection (default value). |
| `IDCard`        | `2`   | Identity document.                   |
| `Passport`      | `3`   | Passport.                            |
| `DriverLicense` | `6`   | Driver's license.                    |
| `ResidentID`    | `7`   | Residence card.                      |

## Morphology

```typescript
import { DocumentType } from '@facephi/selphid-web-component';

selphid.documentType = DocumentType.IDCard;
```

## Description

Restricts the document types that `facephi-selphid-widget` it will try to capture (ID card, passport, permit, etc.). Accepts a value, an array, or strings compatible with the engine.

***

## Example

```jsx
import { DocumentType } from '@facephi/selphid-web-component';

<facephi-selphid-widget
    documentType={DocumentType.IDCard}
/>
```
