Skip to main content

Tag: React

Tags are used to categorize content, often utilizing keywords.

Installation

Before you can start using the @mediahuis/chameleon-react component, you’ll need to install it, for more information check: Getting started for developers.

With that done, you’re now ready to implement the component in your application.

import { Tag } from '@mediahuis/chameleon-react';

export default function Example() {
return <Tag href="#">TagContent</Tag>;
}

Properties

PropertyTypeDefaultRequiredDescription
asElementType'a'NoAllows rendering the tag with a different HTML tag or a different custom component.
hrefString-NoThe href attribute specifies the URL of the page the link goes to, only if the as is a link.