Skip to main content
Urbicon UI

Doc Components

The documentation kit this site is built with — layout shell, code examples, playgrounds, and generated API tables.

Overview

@urbicon-ui/docs is the documentation kit this site is built with — every page you are reading composes exactly these components. Use it to document your own component library or design system with the same editorial look: a page shell with scroll-spy navigation, live code examples, an interactive prop playground, and API tables fed by generated metadata.

Page Anatomy

Content Blocks

Installation

Install

bun add -d @urbicon-ui/docs

A minimal documentation page

<script lang="ts">
  import { DocsLayout, Section, CodeExample, ApiReference } from '@urbicon-ui/docs';
  import { componentData } from './api'; // generated by docs-gen
</script>

<DocsLayout title="Button" description="" navigation={[…]}>
  <Section id="examples" title="Examples">
    <CodeExample title="Basic">
      <Button>Click me</Button>
    </CodeExample>
  </Section>
  <Section id="api" title="API Reference">
    <ApiReference props={componentData.props} />
  </Section>
</DocsLayout>