File tree 1 file changed +16
-5
lines changed
1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change 1
1
<script lang =" ts" >
2
2
import { ToggleGroup } from " $lib" ;
3
- import { TextB , TextItalic } from " phosphor-svelte" ;
3
+ import { TextB , TextItalic , TextStrikethrough } from " phosphor-svelte" ;
4
4
5
- let value: string [] | undefined = undefined ;
5
+ let value: string [] | undefined = [ " bold " ] ;
6
6
</script >
7
7
8
- <ToggleGroup .Root bind:value type =" multiple" >
8
+ <ToggleGroup .Root
9
+ bind:value
10
+ type =" multiple"
11
+ class =" flex h-input items-center gap-x-0.5 rounded-card-sm border border-muted bg-background px-[5px] py-1 shadow-mini"
12
+ >
9
13
<ToggleGroup .Item
10
14
aria-label =" toggle bold"
11
15
value =" bold"
12
- class =" inline-flex items-center justify-center rounded-[9px] bg-background transition-all sq-10 hover:bg-muted active:scale-98 data-[state=on]:bg-muted"
16
+ class =" inline-flex items-center justify-center rounded-[9px] bg-background transition-all sq-10 hover:bg-muted active:scale-98 data-[state=on]:bg-muted"
13
17
>
14
18
<TextB class =" sq-6" />
15
19
</ToggleGroup .Item >
16
20
<ToggleGroup .Item
17
21
aria-label =" toggle italic"
18
22
value =" italic"
19
- class =" inline-flex items-center justify-center rounded-[9px] bg-background transition-all sq-10 hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-foreground focus-visible:ring-offset-2 focus-visible:ring-offset-background active:scale-98 data-[state=on]:bg-muted"
23
+ class =" inline-flex items-center justify-center rounded-[9px] bg-background transition-all sq-10 hover:bg-muted active:scale-98 data-[state=on]:bg-muted"
20
24
>
21
25
<TextItalic class =" sq-6" />
22
26
</ToggleGroup .Item >
27
+ <ToggleGroup .Item
28
+ aria-label =" toggle strikethrough"
29
+ value =" strikethrough"
30
+ class =" inline-flex items-center justify-center rounded-[9px] bg-background transition-all sq-10 hover:bg-muted active:scale-98 data-[state=on]:bg-muted"
31
+ >
32
+ <TextStrikethrough class =" sq-6" />
33
+ </ToggleGroup .Item >
23
34
</ToggleGroup .Root >
You can’t perform that action at this time.
0 commit comments