File tree Expand file tree Collapse file tree 3 files changed +9
-10
lines changed
apps/website/src/routes/docs/styled/separator
packages/kit-styled/src/components/separator Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 1
1
import { component$ } from '@builder.io/qwik' ;
2
- import { Separator } from '@qwik-ui/styled' ;
3
-
2
+ import { Separator } from '~/components/ui' ;
4
3
export default component$ ( ( ) => {
5
4
return (
6
5
< div >
Original file line number Diff line number Diff line change @@ -22,19 +22,19 @@ qwik-ui add separator
22
22
23
23
``` tsx
24
24
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' ;
26
26
import { cn } from ' @qwik-ui/utils' ;
27
27
28
- export const Separator = component$ <PropsOf <typeof QwikUISeparator >>(
28
+ export const Separator = component$ <PropsOf <typeof HeadlessSeparator >>(
29
29
({ orientation = ' horizontal' , decorative = true , ... props }) => {
30
30
return (
31
31
<>
32
- <QwikUISeparator
32
+ <HeadlessSeparator
33
33
{ ... props }
34
34
decorative = { decorative }
35
35
orientation = { orientation }
36
36
class = { cn (
37
- ' bg-border shrink-0' ,
37
+ ' shrink-0 bg-border ' ,
38
38
orientation === ' horizontal' ? ' h-px w-full' : ' h-full w-px' ,
39
39
props .class ,
40
40
)}
@@ -48,7 +48,7 @@ export const Separator = component$<PropsOf<typeof QwikUISeparator>>(
48
48
## Usage
49
49
50
50
``` tsx
51
- import { Separator } from ' @qwik-ui/styled ' ;
51
+ import { Separator } from ' ~/components/ui ' ;
52
52
```
53
53
54
54
``` tsx
Original file line number Diff line number Diff line change 1
1
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' ;
3
3
import { cn } from '@qwik-ui/utils' ;
4
4
5
- export const Separator = component$ < PropsOf < typeof QwikUISeparator > > (
5
+ export const Separator = component$ < PropsOf < typeof HeadlessSeparator > > (
6
6
( { orientation = 'horizontal' , decorative = true , ...props } ) => {
7
7
return (
8
8
< >
9
- < QwikUISeparator
9
+ < HeadlessSeparator
10
10
{ ...props }
11
11
decorative = { decorative }
12
12
orientation = { orientation }
You can’t perform that action at this time.
0 commit comments