Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Highlight.js 315 B
Newer Older
/* eslint-disable react/prop-types */
import React from "react";

export default function Highlight ({children, color}) {
  return (
    <span
      style={{
        backgroundColor: color,
        borderRadius: "2px",
        color: "#fff",
        padding: "0.2rem",
      }}>
      {children}
    </span>
  );
}