@dorsk/tsumikit

Svelte 5 · pure CSS · zero deps
AppShell Principles
v0.101.0
Foundations
Typography 5 ThemeTokens 5 Theming 3 TextScaling 3 Breakpoints 1
Atoms
Artwork 3 Avatar 3 Badge 4 Button 8 Card 6 Checkbox 4 Divider 3 Dot 3 Gauge 4 Heading 3 Icon 4 Input 4 Kbd 3 Link 5 Progress 5 Scrim 3 SegmentedProgress 3 Select 3 Skeleton 5 Slider 3 Spinner 4 Swatch 3 Switch 4 Text 5 Textarea 5 Thinking 2 TimeDisplay 3
Molecules
Accordion 3 AttachmentList 3 Breadcrumb 3 ButtonGroup 3 Callout 3 CapBar 3 Carousel 3 ChatBubble 4 CodeBlock 4 Combobox 3 Composer 3 ConfirmModal 3 CopyButton 4 Disclosure 4 Drawer 3 Dropzone 3 EmojiPicker 3 EmptyState 4 Field 4 Fieldset 4 FileButton 3 FilterChips 6 FilterInput 4 FontScalePicker 3 GitRef 3 GlyphStack 3 IconButton 4 InputGroup 3 KeyValue 3 LoadMore 3 LookPicker 3 Menu 4 Meter 4 Metric / StatTile 4 Modal 3 MotionSettings 3 NotificationItem 2 OptionButton 3 Pagination 4 Popover 3 Prose 6 PullToRefresh 3 RadialMenu 3 RadioGroup 4 RichSelect 3 SectionHeader 3 SeekSlider 4 SegmentedControl 7 SelectButton 3 SortableList 4 SoundSettings 3 SplitButton 3 StatusBar 3 SwipeRow 3 Tabs 6 ThemePicker 3 Timestamp 3 Toaster 6 Toggle 3 Tooltip 3 Truncate 3 VolumeSlider 3 WorkingDir 3
Organisms
ConversationFeed 3 ConversationPanel 3 DataTable 9 FilterSearchBar 4 NotificationCenter 5
Layouts
AppShell 3 Backdrop 3 Container 3 Stack 4 Cluster 4 AutoGrid 3 MasterDetail 4 ResizablePanel 4 NavSection 3 NavItem 4 NavBar 4 TabBar 4 Toolbar 5

Carousel

molecules

One slide at a time from any array: prev/next, dots, a counter, swipe, ←/→ and Home/End, optional loop and autoplay that pauses on hover and focus.

See also TabsSwipeRowArtworkCard

Featured albums

slides is any array, slide is a snippet of (item, index); bind:index, dots and counter.

Neon Rain

Night Drive

Kaleido · 4:03
Low Tide

Paper Boats

June Hollow · 3:18
Neon Rain

Static Bloom

Kaleido · 5:12
Lantern

Lantern

Oro Valley · 2:51
Low Tide

Halfway Home

June Hollow · 4:25
1 / 5

Controls, dots and autoplay

dots={false}, controls={false} with counter, and loop + autoplay (ms) that pauses on hover and focus.

Swipe left or right on a touch screen to change slide.
←/→ step one slide; Home and End jump to the edges.
The slide transition is dropped under prefers-reduced-motion.
Swipe left or right on a touch screen to change slide.
←/→ step one slide; Home and End jump to the edges.
The slide transition is dropped under prefers-reduced-motion.
1 / 3
Swipe left or right on a touch screen to change slide.
←/→ step one slide; Home and End jump to the edges.
The slide transition is dropped under prefers-reduced-motion.

States

a single slide disables both arrows; a tall slide sets the height; onchange reports the new index.

Only one release note this week: nothing changed.
Short.
A long slide: the deck grows to the tallest visible slide, so neighbours of different heights do not make the controls jump around while the user pages through them. A long slide: the deck grows to the tallest visible slide, so neighbours of different heights do not make the controls jump around while the user pages through them. A long slide: the deck grows to the tallest visible slide, so neighbours of different heights do not make the controls jump around while the user pages through them.
Short again.
1 / 3
onchange → 0

Props

PropTypeDefaultDescription
slides required T[]—One entry per panel. Entries may themselves be snippets when no `slide` renderer is given.
slide Snippet<[T, number]>—Renders one panel from its entry and position.
index bindable number0Active panel; bindable. Clamped (or wrapped with `loop`) into range.
onchange (index: number) => void—
loop booleanfalseWrap from the last panel to the first and back.
autoplay number0Milliseconds between automatic advances. `0` (default) disables it. When on, rotation pauses on hover and focus and a play/pause control appears.
dots booleantrue
controls booleantrue
counter booleanfalseShow an `N / M` position counter.
label string'Carousel'
class string''
style string''
slideClass string''
MIT · @dorsk/tsumikit