Pillbox component for React