# definePage

> API reference for definePage: parameters, properties, and return types.

Defines an app page rendered by a function.

```ts
import { definePage } from '@rippling/rippling-sdk';
```

## Properties

| Property | Required | Type | Description |
| --- | --- | --- | --- |
| `apiName` | Required | `` `${string}__c` `` | — |
| `function` | Required | `[FunctionReference](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/FunctionReference-77f9d9d2)` | — |
| `name` | Required | `string` | Display name shown as the tab label in the app (e.g. `'Today\'s schedule'`). |
| `description` | Optional | `string` | — |
| `visibilityPlatforms` | Optional | `[AppVisibilityPlatform](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/AppVisibilityPlatform-2b3761f2)[]` | Platforms this page is visible on. Only SDUI pages support page-level visibility on the backend.<br>**Documented default:** `` `['WEB']` `` |

[Complete options type](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/DefinePageProps-520b4e0e)

TypeScript signature

```ts
definePage(props: DefinePageProps): SduiPage;
```

## Returns

```
SduiPage
```

## Availability

| Capability | Support |
| --- | --- |
| Pull into a project | Supported |
| Runtime operations | Not available for this helper |

Source: https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/definePage

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
