System
platform
Using the App SDK
Actions
Notifications
Dialogs
Components
Forms
GraphQL
Server
- Server functions
- attioFetch()
- Connections
- Events
- Webhooks
System
System
platform
Tells you which Attio platform your client code is running inside.
Values
"web-app"
"mobile-app"
Example Usage
import {platform, TextBlock} from "attio/client"
function WelcomeBlock() {
switch (platform) {
case "web-app": {
return <TextBlock>Welcome to the web app! 🌍</TextBlock>
}
case "mobile-app": {
return <TextBlock>Welcome to the mobile app! 📱</TextBlock>
}
}
}
Was this page helpful?
On this page