Skip to content
UI Kit
Accent color

Open source

For open source projects and open core products. The install line with repository figures, the people who build it with a year of activity, a getting started in tabs, sponsors with a goal and the free edition next to the hosted one.

5 variants
Switch category

Open source

Repository figures

Version and license on top, the install line to copy in an always dark field, figures that count up in a seamless grid. Copy confirms with a tick.

Open in Studio

Contributors

Faces of the people who build it rise in one after another, the count counts up. Below, a year of commits as a heat strip that fills week by week.

Open in Studio

Getting started

Install, use and configure as tabs in an always dark window. The marker glides under the tab, code rises in with line numbers, copy leaves out the prompt.

Open in Studio

Sponsors

A monthly goal that fills when it scrolls in, three sponsor tiers with what they give back, and the names of backers rising in.

Open in Studio

Free and hosted

The free self-hosted edition next to the hosted one, with what each includes row by row. Rows rise in, on phones the editions stack and the rows keep two narrow columns.

Open in Studio

Details

What Open source brings along, read from the registry and the source.

Variants
5
Version
1.0.0 · since 1.1.0
File
components/ui/open-source.tsx
Brings along
utilskitbuttoniconmotionrevealsectionnumber-ticker
npm packages
None
Languages
English and German, 18 texts of its own

Props

The OpenSourceProps interface from components/ui/open-source.tsx, with the comments from the code.

  • variantoptional
    OpenSourceVariant

    repo-statscontributorsget-startedsponsorseditions

  • eyebrowoptional
    React.ReactNode
  • titlerequired
    React.ReactNode
  • descriptionoptional
    React.ReactNode
  • installoptional
    string

    The one command to install

  • licenseoptional
    string

    e.g. MIT, Apache 2.0

  • versionoptional
    string

    e.g. v4.2.0

  • statsoptional
    { label: string; value: number; icon?: IconName; suffix?: string }[]
  • repooptional
    { label: string; href: string }

    Where the code lives

  • peopleoptional
    { name: string; commits?: number }[]

    contributors

  • contributorCountoptional
    number
  • activityoptional
    number[]

    52 weeks, 0 to 4

  • stepsoptional
    { label: string; text?: string; code: string }[]

    get-started: tabs of code

  • goaloptional
    { raised: number; target: number; text: string }

    sponsors

  • tiersoptional
    { name: string; amount: number; perks: string[]; highlight?: boolean }[]
  • backersoptional
    string[]
  • currencyoptional
    string
  • editionsoptional
    { name: string; /** Short name for the narrow columns on phones */ short?: string; price: string; text: string; cta: { label: string; href: string }; highlight?: boolean }[]

    editions

  • rowsoptional
    { label: string; values: (boolean | string)[] }[]
  • ctaoptional
    { label: string; href: string }

Built-in texts

Open source writes these texts itself. The language follows the KitProvider, the labels prop replaces single ones.

Show all 18 texts
copyEnglish Copy commandGerman Befehl kopieren
copyCodeEnglish Copy codeGerman Code kopieren
copiedEnglish CopiedGerman Kopiert
licenseEnglish LicenseGerman Lizenz
latestEnglish LatestGerman Aktuell
contributorsEnglish contributorsGerman Mitwirkende
andMoreEnglish +{n}German +{n}
activityEnglish Commits per week over the last yearGerman Commits pro Woche im letzten Jahr
lessEnglish LessGerman Weniger
moreEnglish MoreGerman Mehr
commitsEnglish {n} commitsGerman {n} Commits
perMonthEnglish / monthGerman / Monat
monthlyEnglish of {a} a monthGerman von {a} im Monat
sponsorEnglish Sponsor with {a} a monthGerman Mit {a} im Monat unterstützen
backersEnglish Backed byGerman Unterstützt von
includedEnglish IncludedGerman Enthalten
notIncludedEnglish Not includedGerman Nicht enthalten
featureEnglish FeatureGerman Funktion

Accessibility

Read from the source of the component.

  • Open source handles the keys Arrow left, Arrow right and Space itself.
  • Sets aria-controls, aria-label, aria-labelledby, aria-selected, aria-valuemax, aria-valuemin and aria-valuenow, so screen readers announce purpose and state.
  • Uses the roles cell, columnheader, img, progressbar, row, rowgroup, rowheader, status, tab, table, tablist and tabpanel.
  • Announces changes through a live region without moving focus.
  • Adds text for screen readers where icons and graphics stand alone.
  • The server renders the starting state in full, JavaScript only adds the interaction.

Motion

  • Rises in briefly the first time it comes into view (kit-rise, useInView).
  • With reduced motion (prefers-reduced-motion) it stays still. 3 places in the code switch motion off then.

Frequent questions

How do I install Open source?

With aiw add @ai-website/open-source. The command puts components/ui/open-source.tsx into your project, the code is yours from then on. It brings along button, icon, motion, reveal, section and number-ticker. It needs no further npm packages.

Which variants does Open source have?

5 variants, Repository figures, Contributors, Getting started, Sponsors and Free and hosted. You pick one with the variant prop, for example variant="contributors".

Can I translate the texts of Open source?

Yes. Open source carries 18 texts of its own in English and German, such as “Copy command”, “Copy code” and “Copied”. The language follows the KitProvider, single texts change through the labels prop.

Can an AI assistant build with Open source?

Yes. Through the MCP server of the aiw CLI, Claude, Cursor, GitHub Copilot, Windsurf, Codex and Gemini find Open source with aiw_components and install it with aiw_add @ai-website/open-source. Name the variant in your prompt, for example variant="repo-stats", and the assistant writes your content straight into the props.

Can I adjust Open source without code?

Yes, in the Studio. All 5 variants are editable there, texts, lists and switches. The Studio writes the matching OpenSource code to copy.

Often searched

Jump to

Copied to the clipboard