DocPageHeader
@brickslab/ui-webEn-tête standard pour les pages de documentation de composants. Affiche le nom en h1, une description, un badge package monospace et des badges supplémentaires configurables. Utilisé par ComponentHeader dans PageSection.tsx.
name + description uniquement
Button
Versatile action button with 4 variants, sizes, icons and loading state.
prop packageName — badge monospace brand
Button
@brickslab/ui-webVersatile action button with 4 variants, sizes, icons and loading state.
Avec badges supplémentaires
prop badges — variantes default · brand · success · warning · error
success + defaultTabs
@brickslab/ui-webStablev0.1.0Controlled tab navigation with underline, pills and boxed variants.
warningBottomSheet
@brickslab/ui-mobileReact NativeBetaMobile bottom sheet with configurable snap points.
| Prop | Type | Défaut | Requis | Description |
|---|
name | string | — | — | Nom du composant affiché en h1. |
description | string | — | — | Description courte affichée sous le titre (max 640px). |
packageName | string | — | — | Nom du package affiché en badge monospace (ex: @brickslab/ui-web). |
badges | Array<{ label: string; variant?: DocPageHeaderBadgeVariant }> | — | — | Badges supplémentaires — variantes: default · brand · success · warning · error. |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { DocPageHeader } from "@brickslab/ui-web";
// Minimal
<DocPageHeader
name="Button"
description="Versatile action button with 4 variants, sizes, icons and loading state."
/>
// Avec package
<DocPageHeader
name="Button"
description="Versatile action button with 4 variants, sizes, icons and loading state."
packageName="@brickslab/ui-web"
/>
// Avec badges supplémentaires
<DocPageHeader
name="BottomSheet"
description="Mobile bottom sheet with configurable snap points."
packageName="@brickslab/ui-mobile"
badges={[
{ label: "React Native", variant: "default" },
{ label: "Beta", variant: "warning" },
]}
/>