Skip to Content
Urban Cowboy
Components

SearchButton

Search action with full/icon and circle/square variants.

SearchButton accepts standard button attributes and adds a variant and isLoading state. It renders its own magnifier SVG; do not replace it with an icon dependency.

string
boolean

Variants

PropValuesNotes
variantfull-circle, icon-circle, full-square, icon-squareShape and whether a label is shown
isLoadingbooleanLoading presentation
Standard button propse.g. onClick, aria-label, disabledForwarded to the native button

Responsive behaviour

The button does not grow with its container. In the variant grid, items wrap on narrow screens; icon-only variants keep an accessible name via aria-label.

Usage

import { SearchButton } from '@/components/booking/search/SearchButton';

<SearchButton variant="full-circle" onClick={submitSearch}>Search</SearchButton>

View source