Values

  • "web-app"
  • "mobile-app"

Example

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>
    }
  }
}