Skip to content

Commit 1f000df

Browse files
authored
docs: fix carousel showcase (#1090)
1 parent 2d03314 commit 1f000df

File tree

2 files changed

+48
-7
lines changed

2 files changed

+48
-7
lines changed

apps/website/src/routes/docs/styled/carousel/index.mdx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ title: Qwik UI | Styled Carousel Component
33
---
44

55
import { statusByComponent } from '~/_state/component-statuses';
6-
7-
<StatusBanner status={statusByComponent.styled.Carousel} />
6+
import { ShowcaseHero, ShowcaseHeroVertical, ShowcasePagination, ShowcaseStepper } from './showcase-components';
87

98
# Carousel
109

1110
Display and navigate through multiple content items.
1211

13-
<Showcase name="hero" />
12+
<ShowcaseHero />
1413

1514
## Installation
1615

@@ -253,14 +252,14 @@ export const Carousel = {
253252

254253
## Examples
255254

256-
### Hero
255+
### Hero Vertical
257256

258-
<Showcase name="hero" />
257+
<ShowcaseHeroVertical />
259258

260259
### Pagination
261260

262-
<Showcase name="pagination" />
261+
<ShowcasePagination />
263262

264263
### Stepper
265264

266-
<Showcase name="stepper" />
265+
<ShowcaseStepper />
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import { component$ } from '@builder.io/qwik';
2+
import { Showcase } from '~/components/showcase/showcase';
3+
4+
import Hero from './examples/hero';
5+
import HeroRawCode from './examples/hero.tsx?raw';
6+
export const ShowcaseHero = component$(() => {
7+
return (
8+
<Showcase rawCode={HeroRawCode}>
9+
<Hero />
10+
</Showcase>
11+
);
12+
});
13+
14+
import HeroVertical from './examples/hero-vertical';
15+
import HeroVerticalRawCode from './examples/hero-vertical.tsx?raw';
16+
export const ShowcaseHeroVertical = component$(() => {
17+
return (
18+
<Showcase rawCode={HeroVerticalRawCode}>
19+
<HeroVertical />
20+
</Showcase>
21+
);
22+
});
23+
24+
import Pagination from './examples/pagination';
25+
import PaginationRawCode from './examples/pagination.tsx?raw';
26+
export const ShowcasePagination = component$(() => {
27+
return (
28+
<Showcase rawCode={PaginationRawCode}>
29+
<Pagination />
30+
</Showcase>
31+
);
32+
});
33+
34+
import Stepper from './examples/stepper';
35+
import StepperRawCode from './examples/stepper.tsx?raw';
36+
export const ShowcaseStepper = component$(() => {
37+
return (
38+
<Showcase rawCode={StepperRawCode}>
39+
<Stepper />
40+
</Showcase>
41+
);
42+
});

0 commit comments

Comments
 (0)