Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Update Web Badge page to fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
olliecurtis committed Feb 2, 2023
1 parent e6c74a0 commit 80fb1c4
Showing 1 changed file with 22 additions and 24 deletions.
46 changes: 22 additions & 24 deletions docs/src/pages/components/Badge/WebBadgePage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,49 +7,44 @@ githubPath: bpk-component-badge

import PresentationBlock from 'components/PresentationBlock';
import Readme from 'backpack/packages/bpk-component-badge/README.md';
import {
import {
DefaultExample,
CenteredExample,
DockedLeadingExample,
DockedTrailingExample,
WarningExample,
SuccessExample,
DestructiveExample,
StrongExample,
BrandExample,
LightExample,
CriticalExample,
InverseExample,
OutlineExample,
StrongExample,
BrandExample,
CenteredExample,
DockedLeadingExample,
DockedTrailingExample,
} from 'backpack/examples/bpk-component-badge/examples';

## Table of contents

## Default

The default behaviour for a badge is to sit next to other objects with text aligned to the baseline.

<PresentationBlock>
<DefaultExample />
</PresentationBlock>

## Docked

A badge can also be configured to have a top right, or top left modifier to pin it to the corner of its parent.
## Success

<PresentationBlock>
<DockedTrailingExample />
<SuccessExample />
</PresentationBlock>

## Success
## Warning

<PresentationBlock>
<SuccessExample />
<WarningExample />
</PresentationBlock>

## Destructive
## Critical

<PresentationBlock>
<DestructiveExample />
<CriticalExample />
</PresentationBlock>

## Strong
Expand All @@ -64,12 +59,6 @@ A badge can also be configured to have a top right, or top left modifier to pin
<BrandExample />
</PresentationBlock>

## Light

<PresentationBlock>
<LightExample />
</PresentationBlock>

## Inverse

<PresentationBlock>
Expand All @@ -82,6 +71,15 @@ A badge can also be configured to have a top right, or top left modifier to pin
<OutlineExample />
</PresentationBlock>


## Docked

A badge can also be configured to have a top right, or top left modifier to pin it to the corner of its parent.

<PresentationBlock>
<DockedTrailingExample />
</PresentationBlock>

## Implementation

<Readme />

0 comments on commit 80fb1c4

Please sign in to comment.