File tree Expand file tree Collapse file tree 3 files changed +24
-1
lines changed
src/Exceptionless.Web/ClientApp/src/lib/features/shared/components/ui/card Expand file tree Collapse file tree 3 files changed +24
-1
lines changed Original file line number Diff line number Diff line change
1
+ <script lang =" ts" >
2
+ import type { WithElementRef } from " bits-ui" ;
3
+ import type { HTMLAttributes } from " svelte/elements" ;
4
+ import { cn } from " $lib/utils.js" ;
5
+
6
+ let {
7
+ ref = $bindable (null ),
8
+ class : className,
9
+ children,
10
+ ... restProps
11
+ }: WithElementRef <HTMLAttributes <HTMLDivElement >> = $props ();
12
+ </script >
13
+
14
+ <div
15
+ bind:this ={ref }
16
+ class ={cn (" absolute right-6 top-6 flex items-center justify-end" , className )}
17
+ {...restProps }
18
+ >
19
+ {@render children ?.()}
20
+ </div >
Original file line number Diff line number Diff line change 11
11
}: WithElementRef <HTMLAttributes <HTMLDivElement >> = $props ();
12
12
</script >
13
13
14
- <div bind:this ={ref } class ={cn (" flex flex-col space-y-1.5 p-6 pb-0" , className )} {...restProps }>
14
+ <div bind:this ={ref } class ={cn (" flex flex-col space-y-1.5 p-6 pb-0 relative " , className )} {...restProps }>
15
15
{@render children ?.()}
16
16
</div >
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import Description from "./card-description.svelte";
4
4
import Footer from "./card-footer.svelte" ;
5
5
import Header from "./card-header.svelte" ;
6
6
import Title from "./card-title.svelte" ;
7
+ import Action from "./card-action.svelte" ;
7
8
8
9
export {
9
10
Root ,
@@ -12,11 +13,13 @@ export {
12
13
Footer ,
13
14
Header ,
14
15
Title ,
16
+ Action ,
15
17
//
16
18
Root as Card ,
17
19
Content as CardContent ,
18
20
Description as CardDescription ,
19
21
Footer as CardFooter ,
20
22
Header as CardHeader ,
21
23
Title as CardTitle ,
24
+ Action as CardAction ,
22
25
} ;
You can’t perform that action at this time.
0 commit comments