Intergalactic Design System

website·Indexed 19 days ago

https://developer.semrush.com/api/v3/

Documentation for Semrush's Intergalactic design system, featuring a comprehensive library of components (Button, Card, SidePanel), data display tools (Venn, Kagi, Polar, and Quadrant charts), and layout patterns. It includes core principles on accessibility, motion, visual loudness, and design tokens, as well as technical guidance on wrapping components and CSS injection.

Tokens
344K
Snippets
1K
Records
3.3K
Agent score
96%

What's inside Intergalactic

  1. Overview of the Cigarette bar chart

    The Cigarette bar chart visualizes parts of a whole by dividing a single bar into proportional segments. The entire bar always represents 100%. It is functionally similar to a Donut chart and is best used for highlighting category proportions rather than exact values. It is recommended for datasets with 5 or fewer categories; for larger datasets, a standard Bar chart is preferred.
  2. Overview of the Switch component

    The Switch component allows users to toggle between two options or states instantly without page refreshes or confirmation dialogs. It is composed of the following sub-components:

    • Switch.Value: The toggle control itself.
    • Switch.Addon: Additional elements associated with the switch.
  3. Overview of the InlineEdit component

    The InlineEdit component is a wrapper that allows a smooth transition between a read-only view mode and an editing mode without requiring a page reload. It is best used in spatially constrained interfaces or where data entry is supplementary (e.g., notes within cards) rather than the primary focus of the page.
  4. Overview of InlineInput component

    InlineInput is a single-line text field designed for switching between view-only and editing modes without reloading the page. It is ideal for tight interfaces where space is limited or for secondary data entry tasks (e.g., editing titles, descriptions, or tags in cards).

    Key Constraints:

    • Do not mix InlineInput with regular inputs within a single form used for submitting data to a system.
    • The font size in edit mode should match the font size used in view-mode to maintain visual consistency.
  5. Overview of TabLine component

    TabLine is a navigation component used to group homogeneous content within a report, settings page, or landing page. It should be used for secondary navigation and not as the primary interface menu. For switching between simple states, use the Switch or Radio components instead.
  6. Overview of BaseTrigger and its variants

    BaseTrigger is a foundational component used to create triggers with button-like behavior. It is implemented in three primary types depending on the required scenario:

    • ButtonTrigger: Standard button-like trigger.
    • FilterTrigger: Operates as an active state of a filter (refer to the detailed FilterTrigger guide for specific usage).
    • LinkTrigger: A trigger that adopts the styles of the Link component.