Loading...
Loading...
Compare original and translation side by side
typography-*neutral-*gray-*red-500blue-600text-foregroundbg-primaryborder-bordertypography-*neutral-*gray-*red-500blue-600text-foregroundbg-primaryborder-borderhttps://v4.gluestack.io/ui/docs/components/${componentName}/https://v4.gluestack.io/ui/docs/components/${componentName}/npx gluestack-ui@alpha init -ynpx gluestack-ui@alpha add --all -ynpx gluestack-ui@alpha init -ynpx gluestack-ui@alpha add --all -y// Component usage with props
<VStack space="lg" className="p-4">
<Heading size="xl" bold>Title</Heading>
<Text size="md" className="text-muted-foreground">Description</Text>
</VStack>
// Button with compound components
<Button variant="outline" size="lg">
<ButtonText>Click Me</ButtonText>
<ButtonIcon as={ChevronRightIcon} />
</Button>
// Input with icon (InputIcon MUST be in InputSlot)
<Input>
<InputSlot>
<InputIcon as={MailIcon} className="text-muted-foreground" />
</InputSlot>
<InputField placeholder="Enter email" />
</Input>
// Semantic color tokens
<Box className="bg-primary text-primary-foreground">
<Text className="text-foreground">Content</Text>
</Box>// Component usage with props
<VStack space="lg" className="p-4">
<Heading size="xl" bold>Title</Heading>
<Text size="md" className="text-muted-foreground">Description</Text>
</VStack>
// Button with compound components
<Button variant="outline" size="lg">
<ButtonText>Click Me</ButtonText>
<ButtonIcon as={ChevronRightIcon} />
</Button>
// Input with icon (InputIcon MUST be in InputSlot)
<Input>
<InputSlot>
<InputIcon as={MailIcon} className="text-muted-foreground" />
</InputSlot>
<InputField placeholder="Enter email" />
</Input>
// Semantic color tokens
<Box className="bg-primary text-primary-foreground">
<Text className="text-foreground">Content</Text>
</Box>typography-*neutral-*gray-*slate-*red-500blue-600text-foregroundtext-muted-foregroundbg-primarybg-cardborder-border/70/90typography-*neutral-*gray-*slate-*red-500blue-600text-foregroundtext-muted-foregroundbg-primarybg-cardborder-border/70/90https://v4.gluestack.io/ui/docs/components/${componentName}/@/components/ui/${componentName}https://v4.gluestack.io/ui/docs/components/${componentName}/@/components/ui/${componentName}gluestack-ui-v4:setupgluestack-ui-v4:creating-componentsgluestack-ui-v4:componentsgluestack-ui-v4:stylinggluestack-ui-v4:variantsgluestack-ui-v4:performancegluestack-ui-v4:validationgluestack-ui-v4:setupgluestack-ui-v4:creating-componentsgluestack-ui-v4:componentsgluestack-ui-v4:stylinggluestack-ui-v4:variantsgluestack-ui-v4:performancegluestack-ui-v4:validation