Skip to main content

Finder

Main accommodation search interface allowing guests to input dates, occupancy, and destination.
🔍 Component type: Search interface | Connects to: /booking-rooms page with <rates> component

Basic Implementation

Add the search component to your page:

Property Types

The finder form adapts based on your data repository configuration:
Configuration: data-type="hotel" (default)Shows basic search fields:
  • Check-in/check-out dates
  • Occupancy (adults/children)
  • Promotional code
Associated with the hotel specified in data-mirai-id

Layout Options

data-layout

Options: inline | column | expand
  • inline (default): Horizontal fields
  • column: Vertical stacking
  • expand: Full parent width (inline only)

data-icon

Options: false | true
  • false (default): Text button
  • true: Magnifying glass icon

Layout Examples

The data-layout="expand" attribute only works with inline layout. It has no effect when combined with column.

Device-Specific Display

Control component visibility based on device type:

data-mobile

Options: true | falsetrue: Shows only on mobile devices
false (default): No mobile restriction

data-desktop

Options: true | falsetrue: Shows only on desktop
false (default): No desktop restriction

Responsive Examples

Automatic Mobile Optimization: The finder automatically switches to a compact, touch-friendly layout on small screens without requiring configuration.

JavaScript Events

Interact with the finder component programmatically:

Publishing setStore Event

Programmatically set form values:
Send any combination of fields. Omitted fields remain unchanged.

Complete Examples


💬 Need help with finder setup? Contact us at support@hotellinkage.com