sigilUI

Install Section

Present installation commands and setup guidance.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { InstallSection } from "@sigil-ui/components";

Usage

<InstallSection
    label="Get started"
    title="Install in seconds"
    commands={[
      { label: "npm",  command: "npm install @sigil-ui/components" },
      { label: "pnpm", command: "pnpm add @sigil-ui/components" },
      { label: "yarn", command: "yarn add @sigil-ui/components" },
    ]}
  />

Props

PropTypeDefaultDescription
labelstring—Readable label for the component.
titlestring—Heading displayed in the component.
descriptionstring—Supporting text below the heading.
notestring—Note configuration.
commands (required)InstallCommand[]—Commands configuration.

Token integration

CSS VariablePurpose
--s-section-pySection py
--s-content-maxContent max
--s-page-marginPage margin
--s-font-monoFont mono
--s-primaryPrimary
--s-font-displayFont display
--s-textText
--s-text-mutedText muted
--s-text-subtleText subtle
--s-radius-mdRadius md
--s-borderBorder
--s-surfaceSurface