A mobile UI component library built on Svelte 5, providing 80+ high-quality components.
npm install svelte-mobile-ui
import { Button, Cell, Icon } from 'svelte-mobile-ui'
import 'svelte-mobile-ui/dist/styles.css'
import { Button } from 'svelte-mobile-ui/components/Button'
<link rel="stylesheet" href="https://unpkg.com/svelte-mobile-ui/dist/styles.css" />
<script src="https://unpkg.com/svelte-mobile-ui/dist/svelte-mobile-ui.iife.js"></script>
<script>
const { Button, Cell } = SvelteMobileUI
</script>
Button — ButtonCell / CellGroup — CellIcon — IconImageComp — ImagePopup — PopupOverlay — OverlayToast — ToastConfigProvider — Global ConfigurationCalendar — CalendarCascader — CascaderCheckbox / CheckboxGroup — CheckboxDatePicker — Date PickerField — Input FieldForm — FormNumberKeyboard — Number KeyboardPasswordInput — Password InputPicker / PickerGroup — PickerRadio / RadioGroup — RadioRate — RateSearch — SearchSlider — SliderStepper — StepperSwitch — SwitchTimePicker — Time PickerUploader — File UploadActionSheet — Action SheetDialog — DialogLoading — LoadingNotify — NotificationPopover — PopoverPullRefresh — Pull to RefreshShareSheet — Share SheetSwipeCell — Swipe CellFloatingPanel — Floating PanelFloatingBubble — Floating BubbleBadge — BadgeCircle — Circle ProgressCollapse / CollapseItem — CollapseCountDown — CountdownDivider — DividerEmpty — Empty StateHighlight — Text HighlightImagePreview — Image PreviewNoticeBar — Notice BarProgress — ProgressSkeleton — SkeletonSteps / Step — StepsSwipe / SwipeItem — SwipeTag — TagTextEllipsis — Text EllipsisWatermark — WatermarkBarrage — BarrageRollingText — Rolling TextList — ListActionBar — Action BarBackTop — Back to TopGrid / GridItem — GridIndexBar / IndexAnchor — Index BarNavBar — Navigation BarPagination — PaginationSidebar / SidebarItem — SidebarSticky — StickyTabs / Tab — TabsTabbar / TabbarItem — Tab BarTreeSelect — Tree SelectCol — ColumnRow — RowSpace — SpaceAddressEdit — Address EditAddressList — Address ListArea — Area SelectorCard — Product CardContactCard — Contact CardContactEdit — Contact EditContactList — Contact ListCoupon / CouponCell / CouponList — CouponSignature — SignatureSubmitBar — Submit BarDropdownMenu / DropdownItem — Dropdown MenuCustomize the theme via CSS variables:
:root {
--smu-primary-color: #1989fa;
--smu-success-color: #07c160;
--smu-warning-color: #ff976a;
--smu-danger-color: #ee0a24;
}
Or use the ConfigProvider component:
<ConfigProvider theme={{ primaryColor: '#1989fa' }}>
<Button type="primary">Themed Button</Button>
</ConfigProvider>
| Format | File | Usage |
|---|---|---|
| ESM | dist/svelte-mobile-ui.mjs |
import syntax |
| CJS | dist/svelte-mobile-ui.cjs |
require() syntax |
| IIFE | dist/svelte-mobile-ui.iife.js |
CDN / <script> tag |
| CSS | dist/styles.css |
Global styles |
| Svelte Source | index.ts |
Direct Svelte project import |
MIT