> For the complete documentation index, see [llms.txt](https://developers.shopbase.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.shopbase.com/build-a-theme/theme-development-resources/theme-object-methods-and-props.md).

# Theme object, methods, and props

#### Object

```
$shop
    $shop.name
        Returns the shop's name.
    $shop.email
		Returns the shop's email.
	$shop.enabled_currencies
		Returns the list of currency objects that the store accepts.
```

#### Methods

```
Routes
	$routeToPath(path)
	$routeToHome()
	$routeToCollections()
	$routeToCollection(collection)
	$routeToProductWithAttribute(name, type)
	$routeToProduct(product)
	$routeToProductWithCollection(collection, product)
	$routeToCart()
	$routeToMyAccount()
	$routeTopage()

Navigate
	$navigateToAccount()
	$navigateToCheckout()

Theme editor
	$getPageSettings(page)
	$getThemeSettings()
	$getForceSettings()
	$getFixedSettings(section)

Menu
	$getMenu(handle)

Device
	$getDevice()
	$isMobile()
	$isTablet()
	$isDesktop()

Storage
	$getStorage(key)
	$setStorage(key, value)

Other
	$resizeImage(url = '', height = '', width = '', crop = '', scale = '')
	$changeCurrency(code)
	$toggleOverlay(state)
```

#### Page component props

**Home**

| Prop                | Type  | Description |
| ------------------- | ----- | ----------- |
| featuredProducts    | Array |             |
| featuredCollections | Array |             |
| collectionList      | Array |             |

**Product**

| **Prop**               | Type     | Description |
| ---------------------- | -------- | ----------- |
| product                | Object   |             |
| variant                | Object   |             |
| description            | String   |             |
| availableOptions       | Array    |             |
| currentOption          | Object   |             |
| unavailableVariant     | Boolean  |             |
| unavailableOptionItems | Object   |             |
| pages                  | Array    |             |
| cartFormId             | String   |             |
| isPageFetching         | Boolean  |             |
| isDisabledAddCart      | Boolean  |             |
| isActiveOptionItem     | Function |             |
| isCartItemAdded        | Boolean  |             |
| uploadProcess          | Object   |             |
| uploadAccept           | String   |             |
| validateProperties     | Object   |             |
| onChangeOption         | Function |             |
| onChangeQuantity       | Function |             |
| onChangeCustomOption   | Function |             |
| onAddToCart            | Function |             |
