body
  #root
View Compiled
@import url("https://fonts.googleapis.com/css2?family=Wix+Madefor+Display:wght@800&display=swap");

$page-background: linear-gradient(
  100deg,
  color(display-p3 0.1137 0.5686 0.9882) 13.57%,
  color(display-p3 0.3529 0.2118 0.7529) 98.38%
);

html {
  background: $page-background;
  height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Wix Madefor Display", sans-serif;
  color: white;
  overflow: hidden;
}

h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  margin-top: 0;
  text-shadow: 2px 4px 3px rgba(0,0,0,0.3);
}



.emoji-selector {
  text-align: center;
  font-size: 48px;

  .emoji-dropdown {
    display: inline-block;
    position: relative;
    cursor: pointer;
    width: 80px;
    transition: width .6s ease-in-out;
    overflow-x: wrap;

    &-trigger {
      border: 2px solid white;
      padding: 10px;
      border-radius: 4px;
    }

    &.open {
      width: 70%;
      .emoji-list {
        display: block;
        height: 286px;
      }
      .emoji-dropdown-trigger {
        border-radius: 0;
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
      }
    }
  }

  .emoji-list {
    background-color: #444857;
    border-bottom: 2px solid white;
    border-left: 2px solid white;
    border-right: 2px solid white;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    padding: 5px 0;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1;
   
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 2ch;

    .emoji {
      display: inline-block;
      font-size: 48px;
      height: 60px;
      width: 48px;
      margin: 6px;
      cursor: pointer;
      flex: 0 0 calc(33.33% - 1ch);

      &.selected {
        border: 1px solid #f0f0f0;
        background: $page-background;
      }
    }
  }

  .selected-emoji {
    margin-bottom: auto;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

lottie-player {
  margin: 0 auto;
  width: 50%;
}

@media (min-height: 769px) {
  lottie-player {
    margin: 0 auto;
    width: 60%;
  }
}

@media (min-height: 1026px) {
  lottie-player {
    width: 95%;
  }
  .emoji-selector .emoji-list {
    max-height: 432px;
  }
}
View Compiled
const { useState } = React;

const emojis = [
  {
    key: "1f600",
    value: "๐Ÿ˜€"
  },
  {
    key: "1f603",
    value: "๐Ÿ˜ƒ"
  },
  {
    key: "1f604",
    value: "๐Ÿ˜„"
  },
  {
    key: "1f601",
    value: "๐Ÿ˜"
  },
  {
    key: "1f606",
    value: "๐Ÿ˜†"
  },
  {
    key: "1f605",
    value: "๐Ÿ˜…"
  },
  {
    key: "1f602",
    value: "๐Ÿ˜‚"
  },
  {
    key: "1f923",
    value: "๐Ÿคฃ"
  },
  {
    key: "1f62d",
    value: "๐Ÿ˜ญ"
  },
  {
    key: "1f609",
    value: "๐Ÿ˜‰"
  },
  {
    key: "1f617",
    value: "๐Ÿ˜—"
  },
  {
    key: "1f619",
    value: "๐Ÿ˜™"
  },
  {
    key: "1f61a",
    value: "๐Ÿ˜š"
  },
  {
    key: "1f618",
    value: "๐Ÿ˜˜"
  },
  {
    key: "1f970",
    value: "๐Ÿฅฐ"
  },
  {
    key: "1f60d",
    value: "๐Ÿ˜"
  },
  {
    key: "1f929",
    value: "๐Ÿคฉ"
  },
  {
    key: "1f973",
    value: "๐Ÿฅณ"
  },
  {
    key: "1fae0",
    value: "๐Ÿซ "
  },
  {
    key: "1f643",
    value: "๐Ÿ™ƒ"
  },
  {
    key: "1f642",
    value: "๐Ÿ™‚"
  },
  {
    key: "1f972",
    value: "๐Ÿฅฒ"
  },
  {
    key: "1f979",
    value: "๐Ÿฅน"
  },
  {
    key: "1f60a",
    value: "๐Ÿ˜Š"
  },
  {
    key: "1f60c",
    value: "๐Ÿ˜Œ"
  },
  {
    key: "1f60f",
    value: "๐Ÿ˜"
  },
  {
    key: "1f634",
    value: "๐Ÿ˜ด"
  },
  {
    key: "1f62a",
    value: "๐Ÿ˜ช"
  },
  {
    key: "1f924",
    value: "๐Ÿคค"
  },
  {
    key: "1f60b",
    value: "๐Ÿ˜‹"
  },
  {
    key: "1f61b",
    value: "๐Ÿ˜›"
  },
  {
    key: "1f61d",
    value: "๐Ÿ˜"
  },
  {
    key: "1f61c",
    value: "๐Ÿ˜œ"
  },
  {
    key: "1f92a",
    value: "๐Ÿคช"
  },
  {
    key: "1f974",
    value: "๐Ÿฅด"
  },
  {
    key: "1f614",
    value: "๐Ÿ˜”"
  },
  {
    key: "1f97a",
    value: "๐Ÿฅบ"
  },
  {
    key: "1f62c",
    value: "๐Ÿ˜ฌ"
  },
  {
    key: "1f611",
    value: "๐Ÿ˜‘"
  },
  {
    key: "1f610",
    value: "๐Ÿ˜"
  },
  {
    key: "1f636",
    value: "๐Ÿ˜ถ"
  },
  {
    key: "1fae5",
    value: "๐Ÿซฅ"
  },
  {
    key: "1f910",
    value: "๐Ÿค"
  },
  {
    key: "1fae1",
    value: "๐Ÿซก"
  },
  {
    key: "1f914",
    value: "๐Ÿค”"
  },
  {
    key: "1f92b",
    value: "๐Ÿคซ"
  },
  {
    key: "1fae2",
    value: "๐Ÿซข"
  },
  {
    key: "1f92d",
    value: "๐Ÿคญ"
  },
  {
    key: "1f971",
    value: "๐Ÿฅฑ"
  },
  {
    key: "1f917",
    value: "๐Ÿค—"
  },
  {
    key: "1fae3",
    value: "๐Ÿซฃ"
  },
  {
    key: "1f631",
    value: "๐Ÿ˜ฑ"
  },
  {
    key: "1f928",
    value: "๐Ÿคจ"
  },
  {
    key: "1f9d0",
    value: "๐Ÿง"
  },
  {
    key: "1f612",
    value: "๐Ÿ˜’"
  },
  {
    key: "1f644",
    value: "๐Ÿ™„"
  },
  {
    key: "1f624",
    value: "๐Ÿ˜ค"
  },
  {
    key: "1f620",
    value: "๐Ÿ˜ "
  },
  {
    key: "1f621",
    value: "๐Ÿ˜ก"
  },
  {
    key: "1f92c",
    value: "๐Ÿคฌ"
  },
  {
    key: "1f61e",
    value: "๐Ÿ˜ž"
  },
  {
    key: "1f613",
    value: "๐Ÿ˜“"
  },
  {
    key: "1f61f",
    value: "๐Ÿ˜Ÿ"
  },
  {
    key: "1f625",
    value: "๐Ÿ˜ฅ"
  },
  {
    key: "1f622",
    value: "๐Ÿ˜ข"
  },
  {
    key: "1f641",
    value: "๐Ÿ™"
  },
  {
    key: "1fae4",
    value: "๐Ÿซค"
  },
  {
    key: "1f615",
    value: "๐Ÿ˜•"
  },
  {
    key: "1f630",
    value: "๐Ÿ˜ฐ"
  },
  {
    key: "1f628",
    value: "๐Ÿ˜จ"
  },
  {
    key: "1f627",
    value: "๐Ÿ˜ง"
  },
  {
    key: "1f626",
    value: "๐Ÿ˜ฆ"
  },
  {
    key: "1f62e",
    value: "๐Ÿ˜ฎ"
  },
  {
    key: "1f62f",
    value: "๐Ÿ˜ฏ"
  },
  {
    key: "1f632",
    value: "๐Ÿ˜ฒ"
  },
  {
    key: "1f633",
    value: "๐Ÿ˜ณ"
  },
  {
    key: "1f92f",
    value: "๐Ÿคฏ"
  },
  {
    key: "1f616",
    value: "๐Ÿ˜–"
  },
  {
    key: "1f623",
    value: "๐Ÿ˜ฃ"
  },
  {
    key: "1f629",
    value: "๐Ÿ˜ฉ"
  },
  {
    key: "1f62b",
    value: "๐Ÿ˜ซ"
  },
  {
    key: "1f635",
    value: "๐Ÿ˜ต"
  },
  {
    key: "1fae8",
    value: "๐Ÿซจ"
  },
  {
    key: "1f976",
    value: "๐Ÿฅถ"
  },
  {
    key: "1f975",
    value: "๐Ÿฅต"
  },
  {
    key: "1f922",
    value: "๐Ÿคข"
  },
  {
    key: "1f92e",
    value: "๐Ÿคฎ"
  },
  {
    key: "1f927",
    value: "๐Ÿคง"
  },
  {
    key: "1f912",
    value: "๐Ÿค’"
  },
  {
    key: "1f915",
    value: "๐Ÿค•"
  },
  {
    key: "1f637",
    value: "๐Ÿ˜ท"
  },
  {
    key: "1f925",
    value: "๐Ÿคฅ"
  },
  {
    key: "1f607",
    value: "๐Ÿ˜‡"
  },
  {
    key: "1f920",
    value: "๐Ÿค "
  },
  {
    key: "1f911",
    value: "๐Ÿค‘"
  },
  {
    key: "1f913",
    value: "๐Ÿค“"
  },
  {
    key: "1f60e",
    value: "๐Ÿ˜Ž"
  },
  {
    key: "1f978",
    value: "๐Ÿฅธ"
  },
  {
    key: "1f921",
    value: "๐Ÿคก"
  },
  {
    key: "1f608",
    value: "๐Ÿ˜ˆ"
  },
  {
    key: "1f47f",
    value: "๐Ÿ‘ฟ"
  },
  {
    key: "1f47b",
    value: "๐Ÿ‘ป"
  },
  {
    key: "1f383",
    value: "๐ŸŽƒ"
  },
  {
    key: "1f4a9",
    value: "๐Ÿ’ฉ"
  },
  {
    key: "1f916",
    value: "๐Ÿค–"
  },
  {
    key: "1f47d",
    value: "๐Ÿ‘ฝ"
  },
  {
    key: "1f31b",
    value: "๐ŸŒ›"
  },
  {
    key: "1f31c",
    value: "๐ŸŒœ"
  },
  {
    key: "1f31e",
    value: "๐ŸŒž"
  },
  {
    key: "1f525",
    value: "๐Ÿ”ฅ"
  },
  {
    key: "1f4af",
    value: "๐Ÿ’ฏ"
  },
  {
    key: "1f31f",
    value: "๐ŸŒŸ"
  },
  {
    key: "1f4a5",
    value: "๐Ÿ’ฅ"
  },
  {
    key: "1f389",
    value: "๐ŸŽ‰"
  },
  {
    key: "1f648",
    value: "๐Ÿ™ˆ"
  },
  {
    key: "1f649",
    value: "๐Ÿ™‰"
  },
  {
    key: "1f64a",
    value: "๐Ÿ™Š"
  },
  {
    key: "1f63a",
    value: "๐Ÿ˜บ"
  },
  {
    key: "1f638",
    value: "๐Ÿ˜ธ"
  },
  {
    key: "1f639",
    value: "๐Ÿ˜น"
  },
  {
    key: "1f63b",
    value: "๐Ÿ˜ป"
  },
  {
    key: "1f63c",
    value: "๐Ÿ˜ผ"
  },
  {
    key: "1f63d",
    value: "๐Ÿ˜ฝ"
  },
  {
    key: "1f640",
    value: "๐Ÿ™€"
  },
  {
    key: "1f63f",
    value: "๐Ÿ˜ฟ"
  },
  {
    key: "1f63e",
    value: "๐Ÿ˜พ"
  },
  {
    key: "1f9e1",
    value: "๐Ÿงก"
  },
  {
    key: "1f49b",
    value: "๐Ÿ’›"
  },
  {
    key: "1f49a",
    value: "๐Ÿ’š"
  },
  {
    key: "1fa75",
    value: "๐Ÿฉต"
  },
  {
    key: "1f499",
    value: "๐Ÿ’™"
  },
  {
    key: "1f49c",
    value: "๐Ÿ’œ"
  },
  {
    key: "1f90e",
    value: "๐ŸคŽ"
  },
  {
    key: "1f5a4",
    value: "๐Ÿ–ค"
  },
  {
    key: "1fa76",
    value: "๐Ÿฉถ"
  },
  {
    key: "1f90d",
    value: "๐Ÿค"
  },
  {
    key: "1fa77",
    value: "๐Ÿฉท"
  },
  {
    key: "1f498",
    value: "๐Ÿ’˜"
  },
  {
    key: "1f49d",
    value: "๐Ÿ’"
  },
  {
    key: "1f496",
    value: "๐Ÿ’–"
  },
  {
    key: "1f497",
    value: "๐Ÿ’—"
  },
  {
    key: "1f493",
    value: "๐Ÿ’“"
  },
  {
    key: "1f49e",
    value: "๐Ÿ’ž"
  },
  {
    key: "1f495",
    value: "๐Ÿ’•"
  },
  {
    key: "1f48c",
    value: "๐Ÿ’Œ"
  },
  {
    key: "1f494",
    value: "๐Ÿ’”"
  },
  {
    key: "1f48b",
    value: "๐Ÿ’‹"
  },
  {
    key: "1f463",
    value: "๐Ÿ‘ฃ"
  },
  {
    key: "1fac0",
    value: "๐Ÿซ€"
  },
  {
    key: "1fa78",
    value: "๐Ÿฉธ"
  },
  {
    key: "1f9a0",
    value: "๐Ÿฆ "
  },
  {
    key: "1f480",
    value: "๐Ÿ’€"
  },
  {
    key: "1f440",
    value: "๐Ÿ‘€"
  },
  {
    key: "1fae6",
    value: "๐Ÿซฆ"
  },
  {
    key: "1f9bf",
    value: "๐Ÿฆฟ"
  },
  {
    key: "1f9be",
    value: "๐Ÿฆพ"
  },
  {
    key: "1f4aa",
    value: "๐Ÿ’ช"
  },
  {
    key: "1f44f",
    value: "๐Ÿ‘"
  },
  {
    key: "1f44d",
    value: "๐Ÿ‘"
  },
  {
    key: "1f44e",
    value: "๐Ÿ‘Ž"
  },
  {
    key: "1f64c",
    value: "๐Ÿ™Œ"
  },
  {
    key: "1f44b",
    value: "๐Ÿ‘‹"
  },
  {
    key: "1f91e",
    value: "๐Ÿคž"
  },
  {
    key: "1f64f",
    value: "๐Ÿ™"
  },
  {
    key: "1f483",
    value: "๐Ÿ’ƒ"
  },
  {
    key: "1f339",
    value: "๐ŸŒน"
  },
  {
    key: "1f940",
    value: "๐Ÿฅ€"
  },
  {
    key: "1f342",
    value: "๐Ÿ‚"
  },
  {
    key: "1f331",
    value: "๐ŸŒฑ"
  },
  {
    key: "1f340",
    value: "๐Ÿ€"
  },
  {
    key: "1f30b",
    value: "๐ŸŒ‹"
  },
  {
    key: "1f305",
    value: "๐ŸŒ…"
  },
  {
    key: "1f304",
    value: "๐ŸŒ„"
  },
  {
    key: "1f308",
    value: "๐ŸŒˆ"
  },
  {
    key: "26a1",
    value: "โšก"
  },
  {
    key: "1f4ab",
    value: "๐Ÿ’ซ"
  },
  {
    key: "1f30d",
    value: "๐ŸŒ"
  },
  {
    key: "1f984",
    value: "๐Ÿฆ„"
  },
  {
    key: "1f98e",
    value: "๐ŸฆŽ"
  },
  {
    key: "1f409",
    value: "๐Ÿ‰"
  },
  {
    key: "1f996",
    value: "๐Ÿฆ–"
  },
  {
    key: "1f422",
    value: "๐Ÿข"
  },
  {
    key: "1f40d",
    value: "๐Ÿ"
  },
  {
    key: "1f438",
    value: "๐Ÿธ"
  },
  {
    key: "1f407",
    value: "๐Ÿ‡"
  },
  {
    key: "1f400",
    value: "๐Ÿ€"
  },
  {
    key: "1f415",
    value: "๐Ÿ•"
  },
  {
    key: "1f416",
    value: "๐Ÿ–"
  },
  {
    key: "1f40e",
    value: "๐ŸŽ"
  },
  {
    key: "1facf",
    value: "๐Ÿซ"
  },
  {
    key: "1f402",
    value: "๐Ÿ‚"
  },
  {
    key: "1f410",
    value: "๐Ÿ"
  },
  {
    key: "1f998",
    value: "๐Ÿฆ˜"
  },
  {
    key: "1f405",
    value: "๐Ÿ…"
  },
  {
    key: "1f412",
    value: "๐Ÿ’"
  },
  {
    key: "1f9a6",
    value: "๐Ÿฆฆ"
  },
  {
    key: "1f987",
    value: "๐Ÿฆ‡"
  },
  {
    key: "1f413",
    value: "๐Ÿ“"
  },
  {
    key: "1f423",
    value: "๐Ÿฃ"
  },
  {
    key: "1f424",
    value: "๐Ÿค"
  },
  {
    key: "1f425",
    value: "๐Ÿฅ"
  },
  {
    key: "1f985",
    value: "๐Ÿฆ…"
  },
  {
    key: "1fabf",
    value: "๐Ÿชฟ"
  },
  {
    key: "1f99a",
    value: "๐Ÿฆš"
  },
  {
    key: "1f9ad",
    value: "๐Ÿฆญ"
  },
  {
    key: "1f42c",
    value: "๐Ÿฌ"
  },
  {
    key: "1f433",
    value: "๐Ÿณ"
  },
  {
    key: "1f421",
    value: "๐Ÿก"
  },
  {
    key: "1f980",
    value: "๐Ÿฆ€"
  },
  {
    key: "1f419",
    value: "๐Ÿ™"
  },
  {
    key: "1fabc",
    value: "๐Ÿชผ"
  },
  {
    key: "1f40c",
    value: "๐ŸŒ"
  },
  {
    key: "1f41c",
    value: "๐Ÿœ"
  },
  {
    key: "1f99f",
    value: "๐ŸฆŸ"
  },
  {
    key: "1f41d",
    value: "๐Ÿ"
  },
  {
    key: "1f98b",
    value: "๐Ÿฆ‹"
  },
  {
    key: "1f43e",
    value: "๐Ÿพ"
  },
  {
    key: "1f345",
    value: "๐Ÿ…"
  },
  {
    key: "1f37f",
    value: "๐Ÿฟ"
  },
  {
    key: "1f37b",
    value: "๐Ÿป"
  },
  {
    key: "1f942",
    value: "๐Ÿฅ‚"
  },
  {
    key: "1f37e",
    value: "๐Ÿพ"
  },
  {
    key: "1f377",
    value: "๐Ÿท"
  },
  {
    key: "1f379",
    value: "๐Ÿน"
  },
  {
    key: "1f6a8",
    value: "๐Ÿšจ"
  },
  {
    key: "1f6f8",
    value: "๐Ÿ›ธ"
  },
  {
    key: "1f680",
    value: "๐Ÿš€"
  },
  {
    key: "1f6eb",
    value: "๐Ÿ›ซ"
  },
  {
    key: "1f6ec",
    value: "๐Ÿ›ฌ"
  },
  {
    key: "1f3a2",
    value: "๐ŸŽข"
  },
  {
    key: "1f38a",
    value: "๐ŸŽŠ"
  },
  {
    key: "1f388",
    value: "๐ŸŽˆ"
  },
  {
    key: "1f382",
    value: "๐ŸŽ‚"
  },
  {
    key: "1f386",
    value: "๐ŸŽ†"
  },
  {
    key: "1faa9",
    value: "๐Ÿชฉ"
  },
  {
    key: "26bd",
    value: "โšฝ"
  },
  {
    key: "1f3af",
    value: "๐ŸŽฏ"
  },
  {
    key: "1f3bb",
    value: "๐ŸŽป"
  },
  {
    key: "1f941",
    value: "๐Ÿฅ"
  },
  {
    key: "1fa87",
    value: "๐Ÿช‡"
  },
  {
    key: "1f50b",
    value: "๐Ÿ”‹"
  },
  {
    key: "1faab",
    value: "๐Ÿชซ"
  },
  {
    key: "1f4b8",
    value: "๐Ÿ’ธ"
  },
  {
    key: "1f4a1",
    value: "๐Ÿ’ก"
  },
  {
    key: "1f393",
    value: "๐ŸŽ“"
  },
  {
    key: "1f48e",
    value: "๐Ÿ’Ž"
  },
  {
    key: "23f0",
    value: "โฐ"
  },
  {
    key: "1f514",
    value: "๐Ÿ””"
  },
  {
    key: "274c",
    value: "โŒ"
  },
  {
    key: "1f3b6",
    value: "๐ŸŽถ"
  },
  {
    key: "1f192",
    value: "๐Ÿ†’"
  },
  {
    key: "1f3c1",
    value: "๐Ÿ"
  },
  {
    key: "2615",
    value: "โ˜•"
  },
  {
    key: "2705",
    value: "โœ…"
  },
  {
    key: "2728",
    value: "โœจ"
  },
    {
    key: "2648",
    value: "โ™ˆ"
  },
  {
    key: "2649",
    value: "โ™‰"
  },
  {
    key: "2650",
    value: "โ™"
  },
  {
    key: "2651",
    value: "โ™‘"
  },
  {
    key: "2652",
    value: "โ™’"
  },
  {
    key: "2653",
    value: "โ™“"
  },
  {
    key: "2795",
    value: "โž•"
  },
  {
    key: "264a",
    value: "โ™Š"
  },
  {
    key: "264b",
    value: "โ™‹"
  },
  {
    key: "264c",
    value: "โ™Œ"
  },
  {
    key: "264d",
    value: "โ™"
  },
  {
    key: "264e",
    value: "โ™Ž"
  },
  {
    key: "264f",
    value: "โ™"
  },
  {
    key: "26ce",
    value: "โ›Ž"
  }
];

const EmojiDropdown = ({
  isDropdownOpen,
  toggleDropdown,
  emojis,
  selectedEmoji,
  handleEmojiSelect
}) => {
  const currentEmoji =
    emojis?.find((emoji) => emoji.key === selectedEmoji)?.value || "";

  return (
    <div className={`emoji-dropdown ${isDropdownOpen ? "open" : ""}`}>
      <div className="emoji-dropdown-trigger" onClick={toggleDropdown}>
        {currentEmoji}
      </div>
      {isDropdownOpen && (
        <div className="emoji-list">
          {emojis.map(({ key, value }) => (
            <span
              key={key}
              className={`emoji ${selectedEmoji === key ? "selected" : ""}`}
              onClick={() => handleEmojiSelect(key)}
            >
              {value}
            </span>
          ))}
        </div>
      )}
    </div>
  );
};

const EmojiDisplay = ({ selectedEmoji }) => {
  return (
    <div className="selected-emoji">
      {selectedEmoji && (
        <div key={selectedEmoji}>
          <lottie-player
            key={`lottie-${selectedEmoji}`}
            src={`https://fonts.gstatic.com/s/e/notoemoji/latest/${selectedEmoji}/lottie.json`}
            autoplay
            loop
          />
        </div>
      )}
    </div>
  );
};

const EmojiSelector = () => {
  const [selectedEmoji, setSelectedEmoji] = useState("1f92f");
  const [isDropdownOpen, setIsDropdownOpen] = useState(false);

  const handleEmojiSelect = (unicodeValue) => {
    setSelectedEmoji(unicodeValue);
    setIsDropdownOpen(false);
  };

  const toggleDropdown = () => {
    setIsDropdownOpen((prevIsOpen) => !prevIsOpen);
  };

  return (
    <div className="emoji-selector">
      <h2>Select an Emoji...</h2>
      <EmojiDropdown
        isDropdownOpen={isDropdownOpen}
        toggleDropdown={toggleDropdown}
        emojis={emojis}
        selectedEmoji={selectedEmoji}
        handleEmojiSelect={handleEmojiSelect}
      />
      {!isDropdownOpen && <EmojiDisplay selectedEmoji={selectedEmoji} />}
    </div>
  );
};

const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(<EmojiSelector />);
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/lottie-player/2.0.2/lottie-player.js
  2. https://unpkg.com/react@18/umd/react.development.js
  3. https://unpkg.com/react-dom@18/umd/react-dom.development.js