{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"bottomsheet-swiftui","type":"registry:item","title":"BottomSheet","description":"A SwiftUI modal sheet that presents focused content from the bottom of the screen.","files":[{"path":"snippets/bottomsheet-swiftui.tsx","content":"import { useState } from \"react\";\nimport { Host, BottomSheet, Button, Text, VStack } from \"@expo/ui/swift-ui\";\n\nexport default function BasicBottomSheetExample() {\n  const [isPresented, setIsPresented] = useState(false);\n\n  return (\n    <Host style={{ flex: 1 }}>\n      <VStack>\n        <BottomSheet\n          isPresented={isPresented}\n          onIsPresentedChange={setIsPresented}\n          anchor={<Button label=\"Open sheet\" onPress={() => setIsPresented(true)} />}\n        >\n          <Text>Hello, world!</Text>\n        </BottomSheet>\n      </VStack>\n    </Host>\n  );\n}\n","type":"registry:file","target":"~/snippets/bottomsheet-swiftui.tsx"}],"author":"expo","dependencies":["@expo/ui"]}