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
Property | Type | Default | Required | Description |
---|---|---|---|---|
as | ElementType | 'a' | No | Allows rendering the tag with a different HTML tag or a different custom component. |
href | String | - | No | The href attribute specifies the URL of the page the link goes to, only if the as is a link. |