🧬 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

🧬 Nutrient Analysis Display

Vitamin D3 (Cholecalciferol)

Also known as: Cholecalciferol, Vitamin Dā‚ƒ

vitamin
Moderate
5000 IU

Per Serving

833%

Daily Value

8/10

Bioavailability

RDA (Adults 19-70)
600 IU

200% of recommended daily allowance

Upper Limit
4000 IU

100% of upper safety limit

šŸ“š Academic References

References & Sources

3
Sorted by credibility

Vitamin D Fact Sheet for Health Professionals

National Institutes of Health Office of Dietary Supplements

Government SourceExcellentFree
Aug 2023

Vitamin D and Health

New England Journal of Medicine

Journal ArticleExcellentSubscription
Mar 2023
Clinical StudyExcellentSubscription
Jan 2023

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