Quick Actions
blocklayoutVertical list of clickable shortcuts in a SectionCard. Spell rows out inline with QuickActionItem — point the hrefs at your own SvelteKit routes.
Installation
$pnpm dlx shadcn-svelte@latest add https://uipkge.dev/r/svelte/quick-actions.json$npx shadcn-svelte@latest add https://uipkge.dev/r/svelte/quick-actions.json$yarn dlx shadcn-svelte@latest add https://uipkge.dev/r/svelte/quick-actions.json$bunx shadcn-svelte@latest add https://uipkge.dev/r/svelte/quick-actions.jsonManifest:
https://uipkge.dev/r/svelte/quick-actions.jsonInstalls to:src/lib/components/blocks/quick-actions/Variants
Loading interactive previews…
Loading interactive previews…
npm dependencies
Includes
Files installed (2)
src/lib/components/blocks/quick-actions/QuickActions.svelte0.5 kB
<script lang="ts"> import type { Snippet } from 'svelte' import { SectionCard } from '$lib/components/ui/section-card' interface Props { title?: string description?: string class?: string children?: Snippet } let { title = 'Quick Actions', description, class: className, children }: Props = $props() </script> <SectionCard data-slot="quick-actions" {title} {description} contentClass="flex flex-col gap-2" class={className} > {@render children?.()} </SectionCard>src/lib/components/blocks/quick-actions/QuickActionItem.svelte0.9 kB
<script lang="ts"> import type { Component } from 'svelte' import { ArrowUpRight } from '@lucide/svelte' import { IconBox } from '$lib/components/ui/icon-box' import { cn } from '$lib/utils' interface Props { label: string icon?: Component href?: string class?: string } let { label, icon, href, class: className }: Props = $props() </script> <!-- One shortcut row. Needs no router adapter: point the hrefs at your own SvelteKit routes — you own this file. --> <a {href} class={cn( 'hover:border-border hover:bg-muted/50 group flex cursor-pointer items-center gap-3 rounded-lg border border-transparent p-3 transition-colors duration-200', className, )} > {#if icon} <IconBox {icon} /> {/if} <span class="flex-1 text-sm font-medium">{label}</span> <ArrowUpRight class="text-muted-foreground size-4 opacity-0 transition-colors duration-200 group-hover:opacity-100" /> </a>
Raw manifest:https://uipkge.dev/r/svelte/quick-actions.json