Skip to content

Commit c20a799

Browse files
committed
fix(styled separator): change import statements
1 parent c9eb3c9 commit c20a799

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

apps/website/src/routes/docs/styled/separator/examples/hero.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { component$ } from '@builder.io/qwik';
2-
import { Separator } from '@qwik-ui/styled';
3-
2+
import { Separator } from '~/components/ui';
43
export default component$(() => {
54
return (
65
<div>

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,19 @@ qwik-ui add separator
2222

2323
```tsx
2424
import { PropsOf, component$ } from '@builder.io/qwik';
25-
import { Separator as QwikUISeparator } from '@qwik-ui/headless';
25+
import { Separator as HeadlessSeparator } from '@qwik-ui/headless';
2626
import { cn } from '@qwik-ui/utils';
2727

28-
export const Separator = component$<PropsOf<typeof QwikUISeparator>>(
28+
export const Separator = component$<PropsOf<typeof HeadlessSeparator>>(
2929
({ orientation = 'horizontal', decorative = true, ...props }) => {
3030
return (
3131
<>
32-
<QwikUISeparator
32+
<HeadlessSeparator
3333
{...props}
3434
decorative={decorative}
3535
orientation={orientation}
3636
class={cn(
37-
'bg-border shrink-0',
37+
'shrink-0 bg-border',
3838
orientation === 'horizontal' ? 'h-px w-full' : 'h-full w-px',
3939
props.class,
4040
)}
@@ -48,7 +48,7 @@ export const Separator = component$<PropsOf<typeof QwikUISeparator>>(
4848
## Usage
4949

5050
```tsx
51-
import { Separator } from '@qwik-ui/styled';
51+
import { Separator } from '~/components/ui';
5252
```
5353

5454
```tsx

packages/kit-styled/src/components/separator/separator.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { PropsOf, component$ } from '@builder.io/qwik';
2-
import { Separator as QwikUISeparator } from '@qwik-ui/headless';
2+
import { Separator as HeadlessSeparator } from '@qwik-ui/headless';
33
import { cn } from '@qwik-ui/utils';
44

5-
export const Separator = component$<PropsOf<typeof QwikUISeparator>>(
5+
export const Separator = component$<PropsOf<typeof HeadlessSeparator>>(
66
({ orientation = 'horizontal', decorative = true, ...props }) => {
77
return (
88
<>
9-
<QwikUISeparator
9+
<HeadlessSeparator
1010
{...props}
1111
decorative={decorative}
1212
orientation={orientation}

0 commit comments

Comments
 (0)