> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# <RoomService />

> Room number and guest name input for hotel room service ordering.

# RoomService

<Snippet file="api-key-location.mdx" />

Collects room number and guest name for hotel room service fulfillment. Validates the room number against the property's room directory.

## Preview

Desktop

Mobile

## Import

```tsx theme={null}
import { RoomService } from '@/components/RoomService'
```

## Usage

```tsx theme={null}
<RoomService
  locationId={locationId}
  onRoomConfirmed={handleRoomConfirmed}
/>
```

## Props

**locationId** `string` *required*

The location (property) ID to validate room numbers against.

**onRoomConfirmed** `(details: RoomServiceDetails) =\> void` *required*

Callback fired when room details are confirmed.

## Behavior

* Room number input with validation
* Guest name field (required for room charge authorization)
* Optional delivery instructions
* Auto-populated when accessed via in-room QR code


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.