Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

953 B
Raw Blame
import type { Meta, StoryObj } from "@storybook/react-vite";

import { DocumentationLinkBadge } from "./DocumentationLinkBadge";

/**
 * The documentation link badge is a re-usable component to link to Infisical documentation references.
 */
const meta = {
  title: "Platform/Documentation Link Badge",
  component: DocumentationLinkBadge,
  parameters: {
    layout: "centered"
  },
  tags: ["autodocs"],
  argTypes: {},
  args: { href: "https://infisical.com/docs/documentation/getting-started/introduction" }
} satisfies Meta<typeof DocumentationLinkBadge>;

export default meta;
type Story = StoryObj<typeof meta>;

export const Default: Story = {
  name: "Example: Default"
};

/**
 * Renders the external-link icon alone, without the badge chrome. Use it where a labelled badge
 * would crowd the surrounding text, such as beside a dialog title.
 */
export const Minified: Story = {
  name: "Example: Minified",
  args: { variant: "minified" }
};