react-icons/md#MdChevronRight JavaScript Examples

The following examples show how to use react-icons/md#MdChevronRight. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AnimationController.js    From covid19 with MIT License 6 votes vote down vote up
render() {
        const { playing } = this.props
        return (
            <div className="anime-ctrl">
                <div className={`anime-ctrl-left-right ${playing ? 'anime-ctrl-playing' : ''}`}>
                    <MdChevronLeft size={30} onClick={this.dateBackward} />
                </div>
                <div className="anime-ctrl-play">
                    {playing ? (
                        <MdPause size={30} onClick={this.stopAnimation} />
                    ) : (
                        <MdPlayArrow size={30} onClick={this.startAnimation} />
                    )}
                </div>
                <div className={`anime-ctrl-left-right ${playing ? 'anime-ctrl-playing' : ''}`}>
                    <MdChevronRight size={30} onClick={this.dateForward} />
                </div>
            </div>
        )
    }
Example #2
Source File: mobile-nav-menu.js    From strapi-starter-next-corporate with MIT License 6 votes vote down vote up
MobileNavMenu = ({ navbar, closeSelf }) => {
  // Prevent window scroll while mobile nav menu is open
  useLockBodyScroll()

  return (
    <div className="w-screen h-screen fixed top-0 left-0 overflow-y-scroll bg-white z-10 pb-6">
      <div className="container h-full flex flex-col justify-between">
        {/* Top section */}
        <div className="flex flex-row justify-between py-2 items-center">
          {/* Company logo */}
          <NextImage width="120" height="33" media={navbar.logo} />
          {/* Close button */}
          <button onClick={closeSelf} className="py-1 px-1">
            <MdClose className="h-8 w-auto" />
          </button>
        </div>
        {/* Bottom section */}
        <div className="flex flex-col justify-end w-9/12 mx-auto">
          <ul className="flex flex-col list-none gap-6 items-baseline text-xl mb-10">
            {navbar.links.map((navLink) => (
              <li key={navLink.id} className="block w-full">
                <CustomLink link={navLink}>
                  <div className="hover:text-gray-900 py-6 flex flex-row justify-between items-center">
                    <span>{navLink.text}</span>
                    <MdChevronRight className="h-8 w-auto" />
                  </div>
                </CustomLink>
              </li>
            ))}
          </ul>
          <ButtonLink
            button={navbar.button}
            appearance={getButtonAppearance(navbar.button.type, "light")}
          />
        </div>
      </div>
    </div>
  )
}