mattrosno / carbon-platform

carbon-platform-git-main.mattrosno.vercel.app
0 stars 0 forks source link

Carbon HeaderName can't use without prefix #5

Open mattrosno opened 3 years ago

mattrosno commented 3 years ago

Instead of HeaderName, I had to directly use a CSS class name, which is using something that's not in Carbon's public API.

/**
 * Component to replace HeaderName, because HeaderName defaults an IBM prefix
 * and there's no way to hide it and the ` ` through a prop or CSS.
 */
const CustomHeaderName = () => (
  <Link href="/">
    <a className="bx--header__name">Carbon Design System</a>
  </Link>
);