HomePaymentsNo-codeDevelopersContribute
Safepay Home PageLive DashboardTest Dashboard

Tag


The Tag component is used to indicate the status of an item, such as 'deprecated' or 'experimental', and optionally includes additional notes. It visually distinguishes these states, enhancing documentation or UI elements where status needs to be clearly communicated.

Usage

Tag Component Usage
import React from 'react';
import { Tag } from '~/ui/components/Tag';

export default function App() {
  return (
    <div>
      <Tag status="experimental" note="In progress" />
      <Tag status="deprecated" note="Use alternative" />
    </div>
  );
}

Rendered Example

experimental: Preview feature
deprecated: No longer supported

Props

NameTypeDefaultDescription
statusstringundefinedThe status category of the tag, e.g., 'deprecated' or 'experimental'
notestringundefinedOptional note providing additional information about the status
classNamestringundefinedAdditional CSS classes to be applied for custom styling
typestringundefinedType of the tag, influencing styling, e.g., 'toc' for table of contents style