Components Overview
Swift Web framework provides 44 components covering common business scenarios including basic interactions, forms, media, containers, ads, QR codes, and more. All components are unstyled and fully customizable.
Basic
SwButton
Semantic button with loading, disabled, and icon support
SwLink
Smart link that auto-detects external URLs and adds rel attributes
SwBreadcrumb
Breadcrumb nav, items-driven with optional built-in BreadcrumbList JSON-LD
SwBackTop
Back-to-top for long pages, fades in past threshold with reduced-motion fallback
SwIcon
Business SVG icon, referenced directly by name
SwImage
Lazy-loading image with optimized srcset and placeholder support
SwThemeSwitch
Theme switcher, self-gated by theme.mode (renders only when toggle)
SwLangSwitch
Language switcher, auto-syncs with i18n.locales; hidden when i18n off / single locale
Form
SwFormField
Form field wrapper with label and validation message support
SwInput
Text input with the unified form-control baseline box (equal height & font size) and full native fallthrough
SwSegmented
Inline single-select option group (segmented / pill) with built-in arrow-key a11y
SwSelect
Dropdown select — single / multi, clearable, grouping, searchable, create-on-type
SwUploadFile
Plain file upload (PDF / docs / zip), chunked without transcoding
SwUploadImage
Image uploader with cropping and preview
SwUploadVideo
Video uploader with progress bar and thumbnail capture
Feedback
SwModal
Unstyled modal — declarative (v-model) and imperative (useModal) usage
SwPagination
Page-number pagination (replace-mode, pairs with SwGallery)
SwToast
Lightweight toast notification with success / error / info types
SwAddToHomescreenGuide
H5 PWA add-to-homescreen guide (bottom sheet, non-blocking)
Media
QR Code
Content
Editor
Containers
SwRail
Free horizontal scroll rail, native scroll-snap + desktop arrows
SwCarousel
Full-width carousel banner, seamless loop + autoplay + dots / thumbnails
SwVideoFeed
TikTok-style vertical short-video feed, bare hls pool + virtualization
SwGallery
Responsive cover-card grid with load-more (complements SwRail)
Ads
SwAdBanner
Banner ad slot, single or multi-image carousel, built-in tracking
SwAdMrec
Medium rectangle ad slot (MREC, default 300×250)
SwAdIcon
Icon ad slot, grid / single-icon image mode
SwAdText
Text ad slot, cell text links / grid
SwAdMarquee
Marquee text ad, seamless horizontal scroll
SwAdNative
Native feed ad card (image + title + desc + CTA)
SwAdSplash
Splash / app-open ad, auto-shown on entry + frequency capping (ad_type=splash)
SwAdPopup
Business-triggered fullscreen popup ad, ref.open() + optional frequency capping
SwAdPreroll
Pre-roll video ad (official #preroll-ad slot filler, mount-time impression)
SwAdPause
Pause ad (official #pause-ad slot filler, shown on gated pause, closable)
SwAdFloating
Side floating ad, shown only when the window is wide enough
SwAdLabel
The "Ad" compliance badge
More Components (reka-ui)
The framework depends on reka-ui as the underlying library; 39+ UI primitives (Select, Tooltip, Tabs, Accordion, Popover, etc.) are bundled with the framework and ready to import — no extra installation needed.