𧬠UI Component Library Demo
Explore all the professional components built for the AI Nutrition Platform. This showcases the complete component library including layout, analysis, and loading states.
šļø Demo Controls
ā ļø Warning System
Pregnancy Considerations
Pregnancy & Breastfeeding
High doses of Vitamin D during pregnancy may cause developmental issues. Pregnant women should not exceed 600 IU daily without medical supervision.
Drug Interaction Warning
Drug Interaction
This supplement may interact with blood thinning medications (warfarin, heparin). Monitor INR levels closely and consult your healthcare provider.
If experiencing unusual bleeding or bruising, contact emergency services immediately.
911More Information
Dosage Exceeds Upper Limit
Dosage Warning
The recommended dosage (5000 IU) exceeds the tolerable upper intake level (4000 IU). Consider reducing dosage or consulting a healthcare provider.
𧬠Nutrient Analysis Display
Vitamin D3 (Cholecalciferol)
Also known as: Cholecalciferol, Vitamin Dā
Per Serving
Daily Value
Bioavailability
200% of recommended daily allowance
100% of upper safety limit
š Academic References
References & Sources
3Vitamin D Fact Sheet for Health Professionals
National Institutes of Health Office of Dietary Supplements
Vitamin D and Health
New England Journal of Medicine
Vitamin D supplementation for prevention of mortality in adults
Cochrane Database of Systematic Reviews
Note: These references are provided for educational purposes. Always verify information with current medical literature and consult healthcare professionals for medical advice. Access to some sources may require subscriptions or institutional access.
⨠Component Features
šØ Design Features
- ā Framer Motion animations
- ā Radix UI primitives
- ā Professional medical styling
- ā Mobile-first responsive
- ā Dark/light mode ready
āæ Accessibility
- ā ARIA labels and roles
- ā Keyboard navigation
- ā Screen reader support
- ā Focus management
- ā Color contrast compliance
š TypeScript
- ā Comprehensive interfaces
- ā JSDoc documentation
- ā Strict type checking
- ā Error handling
- ā Optional props
š§ Functionality
- ā Loading and empty states
- ā Error boundaries
- ā Interactive animations
- ā Medical compliance
- ā Professional citations
š” Usage Examples
Code Examples
NutrientInfo Component:
<NutrientInfo nutrient={vitaminD3Data} detailed={true} animate={true} onInteraction={(action, id) => handleNutrientAction(action, id)} />
Warning Banner:
<WarningBanner warning={{ title: "Drug Interaction Warning", severity: "danger", category: "interaction", message: "May interact with blood thinners" }} onDismiss={(id) => handleDismiss(id)} />