flowbite-svelte 0.44.7 → 0.44.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env +2 -0
- package/.eslintrc.cjs +20 -0
- package/.github/ISSUE_TEMPLATE/bug_report.yml +33 -0
- package/.github/ISSUE_TEMPLATE/config.yml +5 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +17 -0
- package/.github/pull_request_template.md +71 -0
- package/.github/workflows/playwright-and-lint.yaml +47 -0
- package/.prettierignore +16 -0
- package/.prettierrc +9 -0
- package/CHANGELOG.md +3858 -0
- package/CONTRIBUTING.md +66 -0
- package/dist/bottom-nav/BottomNavItem.svelte +3 -1
- package/dist/bottom-nav/BottomNavItem.svelte.d.ts +2 -0
- package/dist/bottom-nav/BottomNavItem.svelte.d.ts.map +1 -1
- package/dist/carousels/Carousel.svelte +52 -153
- package/dist/carousels/Carousel.svelte.d.ts +22 -37
- package/dist/carousels/Carousel.svelte.d.ts.map +1 -1
- package/dist/carousels/ControlButton.svelte +31 -0
- package/dist/carousels/ControlButton.svelte.d.ts +29 -0
- package/dist/carousels/ControlButton.svelte.d.ts.map +1 -0
- package/dist/carousels/Controls.svelte +17 -0
- package/dist/carousels/Controls.svelte.d.ts +23 -0
- package/dist/carousels/Controls.svelte.d.ts.map +1 -0
- package/dist/carousels/Indicators.svelte +26 -0
- package/dist/carousels/Indicators.svelte.d.ts +32 -0
- package/dist/carousels/Indicators.svelte.d.ts.map +1 -0
- package/dist/carousels/Thumbnail.svelte +6 -23
- package/dist/carousels/Thumbnail.svelte.d.ts +5 -16
- package/dist/carousels/Thumbnail.svelte.d.ts.map +1 -1
- package/dist/carousels/Thumbnails.svelte +26 -0
- package/dist/carousels/Thumbnails.svelte.d.ts +33 -0
- package/dist/carousels/Thumbnails.svelte.d.ts.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/tables/TableSearch.svelte +2 -2
- package/dist/tables/TableSearch.svelte.d.ts +1 -1
- package/mdsvex.config.js +18 -0
- package/package.json +18 -80
- package/playwright.config.ts +12 -0
- package/postcss.config.cjs +12 -0
- package/src/app.css +45 -0
- package/src/app.d.ts +9 -0
- package/src/app.html +28 -0
- package/src/app.postcss +55 -0
- package/src/hooks.server.js +27 -0
- package/src/lib/accordion/Accordion.svelte +61 -0
- package/src/lib/accordion/AccordionItem.svelte +120 -0
- package/src/lib/alerts/Alert.svelte +60 -0
- package/src/lib/avatar/Avatar.svelte +56 -0
- package/src/lib/avatar/Placeholder.svelte +16 -0
- package/src/lib/badges/Badge.svelte +108 -0
- package/src/lib/banner/Banner.svelte +64 -0
- package/src/lib/bottom-nav/BottomNav.svelte +76 -0
- package/src/lib/bottom-nav/BottomNavHeader.svelte +19 -0
- package/src/lib/bottom-nav/BottomNavHeaderItem.svelte +23 -0
- package/src/lib/bottom-nav/BottomNavItem.svelte +76 -0
- package/src/lib/breadcrumbs/Breadcrumb.svelte +25 -0
- package/src/lib/breadcrumbs/BreadcrumbItem.svelte +51 -0
- package/src/lib/buttongroups/ButtonGroup.svelte +22 -0
- package/src/lib/buttons/Button.svelte +100 -0
- package/src/lib/buttons/GradientButton.svelte +79 -0
- package/src/lib/cards/Card.svelte +70 -0
- package/src/lib/carousels/Carousel.svelte +166 -0
- package/src/lib/carousels/ControlButton.svelte +34 -0
- package/src/lib/carousels/Controls.svelte +21 -0
- package/src/lib/carousels/Indicators.svelte +31 -0
- package/src/lib/carousels/Thumbnail.svelte +20 -0
- package/src/lib/carousels/Thumbnails.svelte +30 -0
- package/src/lib/charts/Chart.svelte +35 -0
- package/src/lib/darkmode/DarkMode.svelte +58 -0
- package/src/lib/datepicker/Calender.svelte +3 -0
- package/src/lib/datepicker/Datepicker.svelte +66 -0
- package/src/lib/device-mockup/Android.svelte +24 -0
- package/src/lib/device-mockup/DefaultMockup.svelte +21 -0
- package/src/lib/device-mockup/DeviceMockup.svelte +235 -0
- package/src/lib/device-mockup/Ios.svelte +21 -0
- package/src/lib/device-mockup/Smartwatch.svelte +15 -0
- package/src/lib/device-mockup/Tablet.svelte +21 -0
- package/src/lib/drawer/Drawer.svelte +87 -0
- package/src/lib/dropdowns/Dropdown.svelte +81 -0
- package/src/lib/dropdowns/DropdownDivider.svelte +13 -0
- package/src/lib/dropdowns/DropdownHeader.svelte +21 -0
- package/src/lib/dropdowns/DropdownItem.svelte +47 -0
- package/src/lib/footer/Footer.svelte +18 -0
- package/src/lib/footer/FooterBrand.svelte +39 -0
- package/src/lib/footer/FooterCopyright.svelte +38 -0
- package/src/lib/footer/FooterIcon.svelte +25 -0
- package/src/lib/footer/FooterLink.svelte +26 -0
- package/src/lib/footer/FooterLinkGroup.svelte +15 -0
- package/src/lib/forms/Checkbox.svelte +70 -0
- package/src/lib/forms/Dropzone.svelte +32 -0
- package/src/lib/forms/Fileupload.svelte +21 -0
- package/src/lib/forms/FloatingLabelInput.svelte +94 -0
- package/src/lib/forms/Helper.svelte +23 -0
- package/src/lib/forms/Input.svelte +83 -0
- package/src/lib/forms/InputAddon.svelte +47 -0
- package/src/lib/forms/Label.svelte +40 -0
- package/src/lib/forms/MultiSelect.svelte +126 -0
- package/src/lib/forms/NumberInput.svelte +16 -0
- package/src/lib/forms/Radio.svelte +53 -0
- package/src/lib/forms/RadioInline.svelte +9 -0
- package/src/lib/forms/Range.svelte +24 -0
- package/src/lib/forms/Search.svelte +44 -0
- package/src/lib/forms/Select.svelte +49 -0
- package/src/lib/forms/Textarea.svelte +51 -0
- package/src/lib/forms/Toggle.svelte +56 -0
- package/src/lib/forms/VoiceSearch.svelte +57 -0
- package/src/lib/gallery/Gallery.svelte +31 -0
- package/src/lib/index.ts +228 -0
- package/src/lib/indicators/Indicator.svelte +86 -0
- package/src/lib/kbd/ArrowKeyDown.svelte +15 -0
- package/src/lib/kbd/ArrowKeyLeft.svelte +15 -0
- package/src/lib/kbd/ArrowKeyRight.svelte +15 -0
- package/src/lib/kbd/ArrowKeyUp.svelte +15 -0
- package/src/lib/kbd/Kbd.svelte +15 -0
- package/src/lib/list-group/Listgroup.svelte +45 -0
- package/src/lib/list-group/ListgroupItem.svelte +57 -0
- package/src/lib/megamenu/MegaMenu.svelte +52 -0
- package/src/lib/modals/Modal.svelte +162 -0
- package/src/lib/navbar/Menu.svelte +38 -0
- package/src/lib/navbar/NavBrand.svelte +15 -0
- package/src/lib/navbar/NavHamburger.svelte +20 -0
- package/src/lib/navbar/NavLi.svelte +37 -0
- package/src/lib/navbar/NavSidebarHamburger.svelte +20 -0
- package/src/lib/navbar/NavUl.svelte +68 -0
- package/src/lib/navbar/Navbar.svelte +42 -0
- package/src/lib/navbar/SidebarMenu.svelte +37 -0
- package/src/lib/paginations/Pagination.svelte +59 -0
- package/src/lib/paginations/PaginationItem.svelte +40 -0
- package/src/lib/popover/Popover.svelte +34 -0
- package/src/lib/progressbars/Progressbar.svelte +52 -0
- package/src/lib/ratings/AdvancedRating.svelte +45 -0
- package/src/lib/ratings/Heart.svelte +39 -0
- package/src/lib/ratings/Rating.svelte +57 -0
- package/src/lib/ratings/RatingComment.svelte +85 -0
- package/src/lib/ratings/Review.svelte +78 -0
- package/src/lib/ratings/ScoreRating.svelte +76 -0
- package/src/lib/ratings/Star.svelte +47 -0
- package/src/lib/ratings/Thumbup.svelte +39 -0
- package/src/lib/sidebars/Sidebar.svelte +40 -0
- package/src/lib/sidebars/SidebarBrand.svelte +24 -0
- package/src/lib/sidebars/SidebarCta.svelte +28 -0
- package/src/lib/sidebars/SidebarDropdownItem.svelte +26 -0
- package/src/lib/sidebars/SidebarDropdownWrapper.svelte +71 -0
- package/src/lib/sidebars/SidebarGroup.svelte +24 -0
- package/src/lib/sidebars/SidebarItem.svelte +49 -0
- package/src/lib/sidebars/SidebarWrapper.svelte +16 -0
- package/src/lib/skeleton/CardPlaceholder.svelte +48 -0
- package/src/lib/skeleton/ImagePlaceholder.svelte +31 -0
- package/src/lib/skeleton/ListPlaceholder.svelte +50 -0
- package/src/lib/skeleton/Skeleton.svelte +38 -0
- package/src/lib/skeleton/TestimonialPlaceholder.svelte +24 -0
- package/src/lib/skeleton/TextPlaceholder.svelte +60 -0
- package/src/lib/skeleton/VideoPlaceholder.svelte +33 -0
- package/src/lib/skeleton/WidgetPlaceholder.svelte +26 -0
- package/src/lib/speed-dial/SpeedDial.svelte +80 -0
- package/src/lib/speed-dial/SpeedDialButton.svelte +49 -0
- package/src/lib/spinners/Spinner.svelte +49 -0
- package/src/lib/steps/StepIndicator.svelte +75 -0
- package/src/lib/tables/Table.svelte +49 -0
- package/src/lib/tables/TableBody.svelte +14 -0
- package/src/lib/tables/TableBodyCell.svelte +22 -0
- package/src/lib/tables/TableBodyRow.svelte +50 -0
- package/src/lib/tables/TableHead.svelte +45 -0
- package/src/lib/tables/TableHeadCell.svelte +15 -0
- package/src/lib/tables/TableSearch.svelte +73 -0
- package/src/lib/tabs/TabItem.svelte +61 -0
- package/src/lib/tabs/Tabs.svelte +78 -0
- package/src/lib/timeline/Activity.svelte +16 -0
- package/src/lib/timeline/ActivityItem.svelte +59 -0
- package/src/lib/timeline/Group.svelte +27 -0
- package/src/lib/timeline/GroupItem.svelte +59 -0
- package/src/lib/timeline/Timeline.svelte +25 -0
- package/src/lib/timeline/TimelineHorizontal.svelte +17 -0
- package/src/lib/timeline/TimelineItem.svelte +116 -0
- package/src/lib/timeline/TimelineItemHorizontal.svelte +72 -0
- package/src/lib/timeline/TimelineItemVertical.svelte +44 -0
- package/src/lib/toasts/Toast.svelte +99 -0
- package/src/lib/toolbar/Toolbar.svelte +52 -0
- package/src/lib/toolbar/ToolbarButton.svelte +67 -0
- package/src/lib/toolbar/ToolbarGroup.svelte +20 -0
- package/src/lib/tooltips/Tooltip.svelte +42 -0
- package/src/lib/types.ts +163 -0
- package/src/lib/typography/A.svelte +20 -0
- package/src/lib/typography/Blockquote.svelte +51 -0
- package/src/lib/typography/DescriptionList.svelte +22 -0
- package/src/lib/typography/Heading.svelte +28 -0
- package/src/lib/typography/Hr.svelte +37 -0
- package/src/lib/typography/Img.svelte +39 -0
- package/src/lib/typography/Layout.svelte +21 -0
- package/src/lib/typography/Li.svelte +19 -0
- package/src/lib/typography/List.svelte +33 -0
- package/src/lib/typography/Mark.svelte +20 -0
- package/src/lib/typography/P.svelte +102 -0
- package/src/lib/typography/Secondary.svelte +18 -0
- package/src/lib/typography/Span.svelte +35 -0
- package/src/lib/utils/CloseButton.svelte +19 -0
- package/src/lib/utils/Frame.svelte +142 -0
- package/src/lib/utils/Popper.svelte +206 -0
- package/src/lib/utils/Wrapper.svelte +22 -0
- package/src/lib/utils/backdrop.ts +101 -0
- package/src/lib/utils/clickOutside.ts +16 -0
- package/src/lib/utils/createEventDispatcher.ts +24 -0
- package/src/lib/utils/focusTrap.js +42 -0
- package/src/lib/utils/generateId.js +5 -0
- package/src/lib/video/Video.svelte +29 -0
- package/src/routes/+error.svelte +5 -0
- package/src/routes/+layout.svelte +98 -0
- package/src/routes/+page.server.ts +18 -0
- package/src/routes/+page.svelte +55 -0
- package/src/routes/api/posts/+server.js +7 -0
- package/src/routes/component-data/A.json +10 -0
- package/src/routes/component-data/Accordion.json +12 -0
- package/src/routes/component-data/AccordionItem.json +23 -0
- package/src/routes/component-data/Activity.json +1 -0
- package/src/routes/component-data/ActivityItem.json +16 -0
- package/src/routes/component-data/AdvancedRating.json +13 -0
- package/src/routes/component-data/Alert.json +9 -0
- package/src/routes/component-data/Android.json +12 -0
- package/src/routes/component-data/ArrowKeyDown.json +1 -0
- package/src/routes/component-data/ArrowKeyLeft.json +1 -0
- package/src/routes/component-data/ArrowKeyRight.json +1 -0
- package/src/routes/component-data/ArrowKeyUp.json +1 -0
- package/src/routes/component-data/Avatar.json +15 -0
- package/src/routes/component-data/Badge.json +10 -0
- package/src/routes/component-data/Banner.json +12 -0
- package/src/routes/component-data/Blockquote.json +15 -0
- package/src/routes/component-data/BottomNav.json +13 -0
- package/src/routes/component-data/BottomNavHeader.json +9 -0
- package/src/routes/component-data/BottomNavHeaderItem.json +11 -0
- package/src/routes/component-data/BottomNavItem.json +12 -0
- package/src/routes/component-data/Breadcrumb.json +11 -0
- package/src/routes/component-data/BreadcrumbItem.json +12 -0
- package/src/routes/component-data/Button.json +14 -0
- package/src/routes/component-data/ButtonGroup.json +9 -0
- package/src/routes/component-data/Calender.json +1 -0
- package/src/routes/component-data/Card.json +13 -0
- package/src/routes/component-data/CardPlaceholder.json +9 -0
- package/src/routes/component-data/Carousel.json +11 -0
- package/src/routes/component-data/Chart.json +1 -0
- package/src/routes/component-data/Checkbox.json +14 -0
- package/src/routes/component-data/CloseButton.json +1 -0
- package/src/routes/component-data/ControlButton.json +9 -0
- package/src/routes/component-data/Controls.json +1 -0
- package/src/routes/component-data/DarkMode.json +9 -0
- package/src/routes/component-data/Datepicker.json +14 -0
- package/src/routes/component-data/DefaultMockup.json +11 -0
- package/src/routes/component-data/DescriptionList.json +10 -0
- package/src/routes/component-data/DeviceMockup.json +50 -0
- package/src/routes/component-data/Drawer.json +23 -0
- package/src/routes/component-data/Dropdown.json +13 -0
- package/src/routes/component-data/DropdownDivider.json +1 -0
- package/src/routes/component-data/DropdownHeader.json +9 -0
- package/src/routes/component-data/DropdownItem.json +10 -0
- package/src/routes/component-data/Dropzone.json +10 -0
- package/src/routes/component-data/Fileupload.json +10 -0
- package/src/routes/component-data/FloatingLabelInput.json +14 -0
- package/src/routes/component-data/Footer.json +1 -0
- package/src/routes/component-data/FooterBrand.json +15 -0
- package/src/routes/component-data/FooterCopyright.json +14 -0
- package/src/routes/component-data/FooterIcon.json +11 -0
- package/src/routes/component-data/FooterLink.json +11 -0
- package/src/routes/component-data/FooterLinkGroup.json +1 -0
- package/src/routes/component-data/Frame.json +18 -0
- package/src/routes/component-data/Gallery.json +9 -0
- package/src/routes/component-data/GradientButton.json +9 -0
- package/src/routes/component-data/Group.json +11 -0
- package/src/routes/component-data/GroupItem.json +13 -0
- package/src/routes/component-data/Heading.json +10 -0
- package/src/routes/component-data/Heart.json +14 -0
- package/src/routes/component-data/Helper.json +9 -0
- package/src/routes/component-data/Hr.json +13 -0
- package/src/routes/component-data/ImagePlaceholder.json +9 -0
- package/src/routes/component-data/Img.json +17 -0
- package/src/routes/component-data/Indicator.json +13 -0
- package/src/routes/component-data/Indicators.json +9 -0
- package/src/routes/component-data/Input.json +13 -0
- package/src/routes/component-data/InputAddon.json +1 -0
- package/src/routes/component-data/Ios.json +11 -0
- package/src/routes/component-data/Kbd.json +1 -0
- package/src/routes/component-data/Label.json +10 -0
- package/src/routes/component-data/Layout.json +10 -0
- package/src/routes/component-data/Li.json +9 -0
- package/src/routes/component-data/List.json +10 -0
- package/src/routes/component-data/ListPlaceholder.json +1 -0
- package/src/routes/component-data/Listgroup.json +10 -0
- package/src/routes/component-data/ListgroupItem.json +17 -0
- package/src/routes/component-data/Mark.json +10 -0
- package/src/routes/component-data/MegaMenu.json +11 -0
- package/src/routes/component-data/Menu.json +11 -0
- package/src/routes/component-data/Modal.json +17 -0
- package/src/routes/component-data/MultiSelect.json +11 -0
- package/src/routes/component-data/NavBrand.json +1 -0
- package/src/routes/component-data/NavHamburger.json +9 -0
- package/src/routes/component-data/NavLi.json +10 -0
- package/src/routes/component-data/NavSidebarHamburger.json +9 -0
- package/src/routes/component-data/NavUl.json +14 -0
- package/src/routes/component-data/Navbar.json +10 -0
- package/src/routes/component-data/NumberInput.json +1 -0
- package/src/routes/component-data/P.json +19 -0
- package/src/routes/component-data/Pagination.json +13 -0
- package/src/routes/component-data/PaginationItem.json +12 -0
- package/src/routes/component-data/Placeholder.json +1 -0
- package/src/routes/component-data/Popover.json +9 -0
- package/src/routes/component-data/Popper.json +17 -0
- package/src/routes/component-data/Progressbar.json +14 -0
- package/src/routes/component-data/Radio.json +13 -0
- package/src/routes/component-data/RadioInline.json +1 -0
- package/src/routes/component-data/Range.json +9 -0
- package/src/routes/component-data/Rating.json +14 -0
- package/src/routes/component-data/RatingComment.json +10 -0
- package/src/routes/component-data/Review.json +13 -0
- package/src/routes/component-data/ScoreRating.json +13 -0
- package/src/routes/component-data/Search.json +10 -0
- package/src/routes/component-data/Secondary.json +9 -0
- package/src/routes/component-data/Select.json +14 -0
- package/src/routes/component-data/Sidebar.json +11 -0
- package/src/routes/component-data/SidebarBrand.json +11 -0
- package/src/routes/component-data/SidebarCta.json +11 -0
- package/src/routes/component-data/SidebarDropdownItem.json +12 -0
- package/src/routes/component-data/SidebarDropdownWrapper.json +14 -0
- package/src/routes/component-data/SidebarGroup.json +10 -0
- package/src/routes/component-data/SidebarItem.json +12 -0
- package/src/routes/component-data/SidebarMenu.json +11 -0
- package/src/routes/component-data/SidebarWrapper.json +1 -0
- package/src/routes/component-data/Skeleton.json +9 -0
- package/src/routes/component-data/Smartwatch.json +9 -0
- package/src/routes/component-data/Span.json +16 -0
- package/src/routes/component-data/SpeedDial.json +18 -0
- package/src/routes/component-data/SpeedDialButton.json +14 -0
- package/src/routes/component-data/Spinner.json +13 -0
- package/src/routes/component-data/Star.json +14 -0
- package/src/routes/component-data/StepIndicator.json +15 -0
- package/src/routes/component-data/TabItem.json +12 -0
- package/src/routes/component-data/Table.json +14 -0
- package/src/routes/component-data/TableBody.json +1 -0
- package/src/routes/component-data/TableBodyCell.json +1 -0
- package/src/routes/component-data/TableBodyRow.json +1 -0
- package/src/routes/component-data/TableHead.json +9 -0
- package/src/routes/component-data/TableHeadCell.json +1 -0
- package/src/routes/component-data/TableSearch.json +19 -0
- package/src/routes/component-data/Tablet.json +11 -0
- package/src/routes/component-data/Tabs.json +13 -0
- package/src/routes/component-data/TestimonialPlaceholder.json +1 -0
- package/src/routes/component-data/TextPlaceholder.json +9 -0
- package/src/routes/component-data/Textarea.json +11 -0
- package/src/routes/component-data/Thumbnail.json +10 -0
- package/src/routes/component-data/Thumbnails.json +9 -0
- package/src/routes/component-data/Thumbup.json +14 -0
- package/src/routes/component-data/Timeline.json +1 -0
- package/src/routes/component-data/TimelineHorizontal.json +1 -0
- package/src/routes/component-data/TimelineItem.json +10 -0
- package/src/routes/component-data/TimelineItemHorizontal.json +19 -0
- package/src/routes/component-data/TimelineItemVertical.json +13 -0
- package/src/routes/component-data/Toast.json +15 -0
- package/src/routes/component-data/Toggle.json +12 -0
- package/src/routes/component-data/Toolbar.json +9 -0
- package/src/routes/component-data/ToolbarButton.json +12 -0
- package/src/routes/component-data/ToolbarGroup.json +1 -0
- package/src/routes/component-data/Tooltip.json +9 -0
- package/src/routes/component-data/Video.json +12 -0
- package/src/routes/component-data/VideoPlaceholder.json +9 -0
- package/src/routes/component-data/VoiceSearch.json +16 -0
- package/src/routes/component-data/WidgetPlaceholder.json +1 -0
- package/src/routes/component-data/Wrapper.json +10 -0
- package/src/routes/component-data/backdrop.json +9 -0
- package/src/routes/component-data/clickOutside.json +1 -0
- package/src/routes/component-data/createEventDispatcher.json +1 -0
- package/src/routes/component-data/focusTrap.json +1 -0
- package/src/routes/component-data/generateId.json +1 -0
- package/src/routes/component-data/index.json +1 -0
- package/src/routes/component-data/types.json +1 -0
- package/src/routes/docs/+layout.js +10 -0
- package/src/routes/docs/+layout.svelte +74 -0
- package/src/routes/docs/components/[slug]/+page.js +13 -0
- package/src/routes/docs/components/[slug]/+page.svelte +6 -0
- package/src/routes/docs/components/accordion.md +315 -0
- package/src/routes/docs/components/alert.md +342 -0
- package/src/routes/docs/components/avatar.md +215 -0
- package/src/routes/docs/components/badge.md +269 -0
- package/src/routes/docs/components/banner.md +166 -0
- package/src/routes/docs/components/bottom-navigation.md +397 -0
- package/src/routes/docs/components/breadcrumb.md +112 -0
- package/src/routes/docs/components/button-group.md +198 -0
- package/src/routes/docs/components/button.md +314 -0
- package/src/routes/docs/components/card.md +423 -0
- package/src/routes/docs/components/carousel.md +242 -0
- package/src/routes/docs/components/darkmode.md +111 -0
- package/src/routes/docs/components/device-mockups.md +212 -0
- package/src/routes/docs/components/drawer.md +638 -0
- package/src/routes/docs/components/dropdown.md +748 -0
- package/src/routes/docs/components/footer.md +268 -0
- package/src/routes/docs/components/forms.md +254 -0
- package/src/routes/docs/components/gallery.md +230 -0
- package/src/routes/docs/components/imageData/+server.js +43 -0
- package/src/routes/docs/components/indicators.md +273 -0
- package/src/routes/docs/components/kbd.md +248 -0
- package/src/routes/docs/components/list-group.md +157 -0
- package/src/routes/docs/components/mega-menu.md +298 -0
- package/src/routes/docs/components/modal.md +413 -0
- package/src/routes/docs/components/navbar.md +342 -0
- package/src/routes/docs/components/pagination.md +350 -0
- package/src/routes/docs/components/popover.md +388 -0
- package/src/routes/docs/components/progress.md +170 -0
- package/src/routes/docs/components/rating.md +326 -0
- package/src/routes/docs/components/sidebar.md +568 -0
- package/src/routes/docs/components/skeleton.md +165 -0
- package/src/routes/docs/components/speed-dial.md +523 -0
- package/src/routes/docs/components/spinner.md +117 -0
- package/src/routes/docs/components/tab.md +341 -0
- package/src/routes/docs/components/table.md +871 -0
- package/src/routes/docs/components/timeline.md +267 -0
- package/src/routes/docs/components/toast.md +362 -0
- package/src/routes/docs/components/tooltip.md +156 -0
- package/src/routes/docs/components/typography.md +158 -0
- package/src/routes/docs/components/video.md +125 -0
- package/src/routes/docs/examples/[slug]/+page.js +13 -0
- package/src/routes/docs/examples/[slug]/+page.svelte +6 -0
- package/src/routes/docs/examples/sidebar-layout.md +20 -0
- package/src/routes/docs/examples/snapshot.md +59 -0
- package/src/routes/docs/examples/testsnap.svelte +49 -0
- package/src/routes/docs/experimental/[slug]/+page.js +13 -0
- package/src/routes/docs/experimental/[slug]/+page.svelte +6 -0
- package/src/routes/docs/experimental/datepicker.md +131 -0
- package/src/routes/docs/extend/CheckCircle.svelte +3 -0
- package/src/routes/docs/extend/[slug]/+page.js +13 -0
- package/src/routes/docs/extend/[slug]/+page.svelte +6 -0
- package/src/routes/docs/extend/flowbite-svelte-blocks.md +28 -0
- package/src/routes/docs/extend/flowbite-svelte-starter.md +34 -0
- package/src/routes/docs/extend/icons.md +204 -0
- package/src/routes/docs/extend/step-indicator.md +162 -0
- package/src/routes/docs/forms/[slug]/+page.js +13 -0
- package/src/routes/docs/forms/[slug]/+page.svelte +6 -0
- package/src/routes/docs/forms/checkbox.md +329 -0
- package/src/routes/docs/forms/file-input.md +171 -0
- package/src/routes/docs/forms/floating-label.md +176 -0
- package/src/routes/docs/forms/input-field.md +398 -0
- package/src/routes/docs/forms/radio.md +303 -0
- package/src/routes/docs/forms/range.md +110 -0
- package/src/routes/docs/forms/search-input.md +133 -0
- package/src/routes/docs/forms/select.md +280 -0
- package/src/routes/docs/forms/textarea.md +142 -0
- package/src/routes/docs/forms/toggle.md +86 -0
- package/src/routes/docs/pages/[slug]/+page.js +13 -0
- package/src/routes/docs/pages/[slug]/+page.svelte +6 -0
- package/src/routes/docs/pages/colors.md +152 -0
- package/src/routes/docs/pages/compiler-speed.md +116 -0
- package/src/routes/docs/pages/customization.md +103 -0
- package/src/routes/docs/pages/how-to-contribute.md +138 -0
- package/src/routes/docs/pages/ide-support.md +19 -0
- package/src/routes/docs/pages/introduction.md +131 -0
- package/src/routes/docs/pages/license.md +22 -0
- package/src/routes/docs/pages/quickstart.md +128 -0
- package/src/routes/docs/pages/typescript.md +25 -0
- package/src/routes/docs/plugins/[slug]/+page.js +13 -0
- package/src/routes/docs/plugins/[slug]/+page.svelte +6 -0
- package/src/routes/docs/plugins/charts.md +990 -0
- package/src/routes/docs/typography/[slug]/+page.js +13 -0
- package/src/routes/docs/typography/[slug]/+page.svelte +6 -0
- package/src/routes/docs/typography/blockquote.md +214 -0
- package/src/routes/docs/typography/heading.md +270 -0
- package/src/routes/docs/typography/hr.md +115 -0
- package/src/routes/docs/typography/image.md +244 -0
- package/src/routes/docs/typography/link.md +147 -0
- package/src/routes/docs/typography/list.md +358 -0
- package/src/routes/docs/typography/paragraph.md +265 -0
- package/src/routes/docs/typography/text.md +340 -0
- package/src/routes/docs/utilities/[slug]/+page.js +13 -0
- package/src/routes/docs/utilities/[slug]/+page.svelte +6 -0
- package/src/routes/docs/utilities/close-button.md +42 -0
- package/src/routes/docs/utilities/label.md +41 -0
- package/src/routes/docs/utilities/toolbar.md +157 -0
- package/src/routes/landing/CTA.svelte +98 -0
- package/src/routes/landing/Components.svelte +42 -0
- package/src/routes/landing/Contributors.svelte +55 -0
- package/src/routes/landing/DesignFigma.svelte +39 -0
- package/src/routes/landing/Featured.svelte +33 -0
- package/src/routes/landing/GetStarted.svelte +23 -0
- package/src/routes/landing/Hero.svelte +38 -0
- package/src/routes/landing/SocialProof.svelte +80 -0
- package/src/routes/landing/utils/A.svelte +5 -0
- package/src/routes/landing/utils/H2.svelte +1 -0
- package/src/routes/landing/utils/Row.svelte +16 -0
- package/src/routes/landing/utils/Section.svelte +9 -0
- package/src/routes/layouts/component/+page.svelte +44 -0
- package/src/routes/layouts/component/Anchor.svelte +29 -0
- package/src/routes/layouts/component/code.svelte +1 -0
- package/src/routes/layouts/component/h1.svelte +0 -0
- package/src/routes/layouts/component/h2.svelte +5 -0
- package/src/routes/layouts/component/h3.svelte +5 -0
- package/src/routes/layouts/testLayout/+page.svelte +5 -0
- package/src/routes/utils/AlgoliaSearch.svelte +22 -0
- package/src/routes/utils/CompoAttributesViewer.svelte +78 -0
- package/src/routes/utils/CompoCard.svelte +36 -0
- package/src/routes/utils/CompoDescription.svelte +7 -0
- package/src/routes/utils/CopyCliboardInput.svelte +45 -0
- package/src/routes/utils/DocBadge.svelte +7 -0
- package/src/routes/utils/DocBadgeList.svelte +10 -0
- package/src/routes/utils/ExampleDarkMode.svelte +16 -0
- package/src/routes/utils/ExampleWrapper.svelte +143 -0
- package/src/routes/utils/Footer.svelte +64 -0
- package/src/routes/utils/GitHubSource.svelte +13 -0
- package/src/routes/utils/GitHubSourceList.svelte +21 -0
- package/src/routes/utils/MetaTag.svelte +42 -0
- package/src/routes/utils/Newsletter.svelte +52 -0
- package/src/routes/utils/PageHeadSection.svelte +20 -0
- package/src/routes/utils/Paging.svelte +60 -0
- package/src/routes/utils/TableDefaultRow.svelte +81 -0
- package/src/routes/utils/TableProp.svelte +41 -0
- package/src/routes/utils/Toc.svelte +55 -0
- package/src/routes/utils/ToolbarLink.svelte +12 -0
- package/src/routes/utils/data.json +48 -0
- package/src/routes/utils/icons/Angular.svelte +3 -0
- package/src/routes/utils/icons/ArrowLeft.svelte +3 -0
- package/src/routes/utils/icons/ArrowRight.svelte +3 -0
- package/src/routes/utils/icons/Check.svelte +3 -0
- package/src/routes/utils/icons/China.svelte +9 -0
- package/src/routes/utils/icons/Clipboard.svelte +3 -0
- package/src/routes/utils/icons/CoinbaseWallet.svelte +4 -0
- package/src/routes/utils/icons/Combinator.svelte +35 -0
- package/src/routes/utils/icons/Community.svelte +5 -0
- package/src/routes/utils/icons/Dev.svelte +9 -0
- package/src/routes/utils/icons/Discord.svelte +5 -0
- package/src/routes/utils/icons/Dribble.svelte +3 -0
- package/src/routes/utils/icons/Figma.svelte +14 -0
- package/src/routes/utils/icons/FlowbiteLogo.svelte +49 -0
- package/src/routes/utils/icons/Fortmatic.svelte +4 -0
- package/src/routes/utils/icons/Germany.svelte +5 -0
- package/src/routes/utils/icons/GitHub.svelte +13 -0
- package/src/routes/utils/icons/Hunt.svelte +17 -0
- package/src/routes/utils/icons/Italy.svelte +7 -0
- package/src/routes/utils/icons/Mail.svelte +4 -0
- package/src/routes/utils/icons/MetaMask.svelte +31 -0
- package/src/routes/utils/icons/Moon.svelte +3 -0
- package/src/routes/utils/icons/Npm.svelte +3 -0
- package/src/routes/utils/icons/OperaWallet.svelte +17 -0
- package/src/routes/utils/icons/Quote.svelte +3 -0
- package/src/routes/utils/icons/React.svelte +4 -0
- package/src/routes/utils/icons/Reddit.svelte +23 -0
- package/src/routes/utils/icons/Sun.svelte +7 -0
- package/src/routes/utils/icons/Usa.svelte +31 -0
- package/src/routes/utils/icons/Vue.svelte +3 -0
- package/src/routes/utils/icons/WalletConnect.svelte +18 -0
- package/src/routes/utils/icons/YouTube.svelte +3 -0
- package/src/routes/utils/icons/YouTubeFull.svelte +17 -0
- package/src/routes/utils/index.ts +146 -0
- package/src/routes/utils/mdsvex.d.ts +8 -0
- package/static/images/alert-prop.png +0 -0
- package/static/images/carousel/cosmic-timetraveler-pYyOZ8q7AII-unsplash.webp +0 -0
- package/static/images/carousel/cristina-gottardi-CSpjU6hYo_0-unsplash.webp +0 -0
- package/static/images/carousel/johannes-plenio-RwHv7LgeC7s-unsplash.webp +0 -0
- package/static/images/carousel/jonatan-pie-3l3RwQdHRHg-unsplash.webp +0 -0
- package/static/images/carousel/mark-harpur-K2s_YE031CA-unsplash.webp +0 -0
- package/static/images/carousel/pietro-de-grandi-T7K4aEPoGGk-unsplash.webp +0 -0
- package/static/images/carousel/sergey-pesterev-tMvuB9se2uQ-unsplash.webp +0 -0
- package/static/images/carousel/solotravelgoals-7kLufxYoqWk-unsplash.webp +0 -0
- package/static/images/carousel-1.svg +4 -0
- package/static/images/carousel-2.svg +4 -0
- package/static/images/carousel-3.svg +4 -0
- package/static/images/carousel-4.svg +4 -0
- package/static/images/carousel-5.svg +4 -0
- package/static/images/code-example-dark.png +0 -0
- package/static/images/code-example.png +0 -0
- package/static/images/colors.webp +0 -0
- package/static/images/components/accordion-dark.svg +40 -0
- package/static/images/components/accordion.svg +40 -0
- package/static/images/components/alert-dark.svg +11 -0
- package/static/images/components/alert.svg +11 -0
- package/static/images/components/avatar-dark.svg +117 -0
- package/static/images/components/avatar.svg +117 -0
- package/static/images/components/badge-dark.svg +5 -0
- package/static/images/components/badge.svg +5 -0
- package/static/images/components/banner-dark.svg +34 -0
- package/static/images/components/banner.svg +33 -0
- package/static/images/components/bottom-navigation-dark.svg +44 -0
- package/static/images/components/bottom-navigation.svg +43 -0
- package/static/images/components/breadcrumb-dark.svg +7 -0
- package/static/images/components/breadcrumb.svg +7 -0
- package/static/images/components/button-dark.svg +10 -0
- package/static/images/components/button-group-dark.svg +10 -0
- package/static/images/components/button-group.svg +10 -0
- package/static/images/components/button.svg +10 -0
- package/static/images/components/card-dark.svg +31 -0
- package/static/images/components/card.svg +32 -0
- package/static/images/components/carousel-dark.svg +13 -0
- package/static/images/components/carousel.svg +13 -0
- package/static/images/components/charts-dark.svg +29 -0
- package/static/images/components/charts.svg +29 -0
- package/static/images/components/darkmode-dark.svg +7 -0
- package/static/images/components/darkmode.svg +3 -0
- package/static/images/components/device-mockups-dark.svg +17 -0
- package/static/images/components/device-mockups.svg +17 -0
- package/static/images/components/drawer-dark.svg +32 -0
- package/static/images/components/drawer.svg +32 -0
- package/static/images/components/dropdown-dark.svg +35 -0
- package/static/images/components/dropdown.svg +35 -0
- package/static/images/components/footer-dark.svg +52 -0
- package/static/images/components/footer.svg +50 -0
- package/static/images/components/forms-dark.svg +64 -0
- package/static/images/components/forms.svg +64 -0
- package/static/images/components/gallery-dark.svg +14 -0
- package/static/images/components/gallery.svg +14 -0
- package/static/images/components/indicators-dark.svg +38 -0
- package/static/images/components/indicators.svg +38 -0
- package/static/images/components/jumbotron-dark.svg +13 -0
- package/static/images/components/jumbotron.svg +13 -0
- package/static/images/components/kbd-dark.svg +460 -0
- package/static/images/components/kbd.svg +462 -0
- package/static/images/components/list-group-dark.svg +58 -0
- package/static/images/components/list-group.svg +58 -0
- package/static/images/components/mega-menu-dark.svg +71 -0
- package/static/images/components/mega-menu.svg +71 -0
- package/static/images/components/modal-dark.svg +32 -0
- package/static/images/components/modal.svg +33 -0
- package/static/images/components/navbar-dark.svg +78 -0
- package/static/images/components/navbar.svg +78 -0
- package/static/images/components/pagination-dark.svg +50 -0
- package/static/images/components/pagination.svg +50 -0
- package/static/images/components/popover-dark.svg +18 -0
- package/static/images/components/popover.svg +17 -0
- package/static/images/components/progress-dark.svg +10 -0
- package/static/images/components/progress.svg +10 -0
- package/static/images/components/rating-dark.svg +29 -0
- package/static/images/components/rating.svg +29 -0
- package/static/images/components/sidebar-dark.svg +17 -0
- package/static/images/components/sidebar.svg +18 -0
- package/static/images/components/skeleton-dark.svg +10 -0
- package/static/images/components/skeleton.svg +10 -0
- package/static/images/components/speed-dial-dark.svg +69 -0
- package/static/images/components/speed-dial.svg +69 -0
- package/static/images/components/spinner-dark.svg +6 -0
- package/static/images/components/spinner.svg +6 -0
- package/static/images/components/stepper-dark.svg +11 -0
- package/static/images/components/stepper.svg +10 -0
- package/static/images/components/tab-dark.svg +10 -0
- package/static/images/components/tab.svg +10 -0
- package/static/images/components/table-dark.svg +47 -0
- package/static/images/components/table.svg +47 -0
- package/static/images/components/timeline-dark.svg +20 -0
- package/static/images/components/timeline.svg +20 -0
- package/static/images/components/toast-dark.svg +49 -0
- package/static/images/components/toast.svg +49 -0
- package/static/images/components/tooltip-dark.svg +7 -0
- package/static/images/components/tooltip.svg +7 -0
- package/static/images/components/typography-dark.svg +13 -0
- package/static/images/components/typography.svg +13 -0
- package/static/images/components/video-dark.svg +4 -0
- package/static/images/components/video.svg +4 -0
- package/static/images/eugene.jpg +0 -0
- package/static/images/examples/content-gallery-3.png +0 -0
- package/static/images/examples/image-1.jpg +0 -0
- package/static/images/examples/image-1@2x.jpg +0 -0
- package/static/images/examples/image-2@2x.jpg +0 -0
- package/static/images/examples/image-3@2x.jpg +0 -0
- package/static/images/examples/image-4@2x.jpg +0 -0
- package/static/images/experimental/datepicker-dark.svg +67 -0
- package/static/images/experimental/datepicker.svg +67 -0
- package/static/images/favicon.png +0 -0
- package/static/images/favicon.svg +49 -0
- package/static/images/figma-dark.png +0 -0
- package/static/images/figma.png +0 -0
- package/static/images/flowbite-svelte-blocks-optimized.png +0 -0
- package/static/images/flowbite-svelte-icon-logo.svg +49 -0
- package/static/images/flowbite-svelte-icon.svg +49 -0
- package/static/images/flowbite-svelte-og-image.png +0 -0
- package/static/images/flowbite-svelte.png +0 -0
- package/static/images/forms/checkbox-dark.svg +14 -0
- package/static/images/forms/checkbox.svg +14 -0
- package/static/images/forms/file-input-dark.svg +59 -0
- package/static/images/forms/file-input.svg +46 -0
- package/static/images/forms/floating-label-dark.svg +11 -0
- package/static/images/forms/floating-label.svg +11 -0
- package/static/images/forms/input-field-dark.svg +65 -0
- package/static/images/forms/input-field.svg +66 -0
- package/static/images/forms/radio-dark.svg +14 -0
- package/static/images/forms/radio.svg +12 -0
- package/static/images/forms/range-dark.svg +38 -0
- package/static/images/forms/range.svg +38 -0
- package/static/images/forms/search-input-dark.svg +82 -0
- package/static/images/forms/search-input.svg +82 -0
- package/static/images/forms/select-dark.svg +64 -0
- package/static/images/forms/select.svg +64 -0
- package/static/images/forms/textarea-dark.svg +16 -0
- package/static/images/forms/textarea.svg +16 -0
- package/static/images/forms/toggle-dark.svg +12 -0
- package/static/images/forms/toggle.svg +12 -0
- package/static/images/gallery-dark.png +0 -0
- package/static/images/gallery.png +0 -0
- package/static/images/graphs-dark.png +0 -0
- package/static/images/graphs.png +0 -0
- package/static/images/image-1.jpeg +0 -0
- package/static/images/image-1.png +0 -0
- package/static/images/image-1.webp +0 -0
- package/static/images/image-2.jpeg +0 -0
- package/static/images/image-2.png +0 -0
- package/static/images/image-2.webp +0 -0
- package/static/images/image-4.jpeg +0 -0
- package/static/images/image-4.png +0 -0
- package/static/images/image-4.webp +0 -0
- package/static/images/italy.png +0 -0
- package/static/images/nature-1.jpeg +0 -0
- package/static/images/office1.webp +0 -0
- package/static/images/product-1.webp +0 -0
- package/static/images/profile-picture-1.webp +0 -0
- package/static/images/profile-picture-2.webp +0 -0
- package/static/images/profile-picture-3.webp +0 -0
- package/static/images/profile-picture-4.webp +0 -0
- package/static/images/profile-picture-5.webp +0 -0
- package/static/images/sveltekit-sidebar-layout-optimized.png +0 -0
- package/static/images/tailwind-code-dark.png +0 -0
- package/static/images/tailwind-code.png +0 -0
- package/static/images/typography/blockquote-dark.svg +8 -0
- package/static/images/typography/blockquote.svg +8 -0
- package/static/images/typography/heading-dark.svg +5 -0
- package/static/images/typography/heading.svg +5 -0
- package/static/images/typography/hr-dark.svg +7 -0
- package/static/images/typography/hr.svg +7 -0
- package/static/images/typography/image-dark.svg +6 -0
- package/static/images/typography/image.svg +6 -0
- package/static/images/typography/link-dark.svg +4 -0
- package/static/images/typography/link.svg +4 -0
- package/static/images/typography/list-dark.svg +26 -0
- package/static/images/typography/list.svg +26 -0
- package/static/images/typography/paragraph-dark.svg +13 -0
- package/static/images/typography/paragraph.svg +13 -0
- package/static/images/typography/text-dark.svg +11 -0
- package/static/images/typography/text.svg +11 -0
- package/static/site.webmanifest +12 -0
- package/static/styles/docs.css +537 -0
- package/static/videos/compo-doc.gif +0 -0
- package/static/videos/flowbite.mp4 +0 -0
- package/svelte.config.js +28 -0
- package/tailwind.config.cjs +89 -0
- package/tests/components.spec.ts +199 -0
- package/tests/examples.spec.ts +11 -0
- package/tests/extend.spec.ts +19 -0
- package/tests/forms.spec.ts +62 -0
- package/tests/page.spec.ts +46 -0
- package/tests/plugins.spec.ts +7 -0
- package/tests/redirect.spec.ts +175 -0
- package/tests/typography.spec.ts +52 -0
- package/tests/utilities.spec.ts +22 -0
- package/tsconfig.json +21 -0
- package/vite.config.ts +22 -0
- package/vite.config.ts.timestamp-1692816833518-844de2c3e2008.mjs +22 -0
- package/dist/carousels/Caption.svelte +0 -17
- package/dist/carousels/Caption.svelte.d.ts +0 -26
- package/dist/carousels/Caption.svelte.d.ts.map +0 -1
- package/dist/carousels/CarouselTransition.svelte +0 -174
- package/dist/carousels/CarouselTransition.svelte.d.ts +0 -68
- package/dist/carousels/CarouselTransition.svelte.d.ts.map +0 -1
- package/dist/carousels/Indicator.svelte +0 -20
- package/dist/carousels/Indicator.svelte.d.ts +0 -28
- package/dist/carousels/Indicator.svelte.d.ts.map +0 -1
- package/dist/carousels/Slide.svelte +0 -23
- package/dist/carousels/Slide.svelte.d.ts +0 -30
- package/dist/carousels/Slide.svelte.d.ts.map +0 -1
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: componentLayout
|
|
3
|
+
title: Svelte Footer - Flowbite
|
|
4
|
+
breadcrumb_title: Svelte Footer
|
|
5
|
+
component_title: Footer
|
|
6
|
+
dir: Components
|
|
7
|
+
description: Use the footer section at the bottom of every page to show valuable information to your users, such as sitemap links, a copyright notice, and a logo
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
import { TableProp, TableDefaultRow, CompoAttributesViewer } from '../../utils'
|
|
12
|
+
import { P, A } from '$lib'
|
|
13
|
+
|
|
14
|
+
const components = 'Footer, FooterBrand, FooterCopyright, FooterIcon, FooterLink, FooterLinkGroup'
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
The footer is one of the most underestimated sections of a website being located at the very bottom of every page, however, it can be used as a way to try to convince users to stay on your website if they haven’t found the information they’ve been looking for inside the main content area.
|
|
18
|
+
|
|
19
|
+
## Setup
|
|
20
|
+
|
|
21
|
+
```svelte example hideOutput
|
|
22
|
+
<script>
|
|
23
|
+
import { Footer, FooterBrand, FooterCopyright, FooterIcon, FooterLink, FooterLinkGroup } from 'flowbite-svelte';
|
|
24
|
+
</script>
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Default footer
|
|
28
|
+
|
|
29
|
+
<p>Use this footer component to show a copyright notice and some helpful website links.</p>
|
|
30
|
+
|
|
31
|
+
```svelte example
|
|
32
|
+
<script>
|
|
33
|
+
import { Footer, FooterCopyright, FooterLinkGroup, FooterLink } from 'flowbite-svelte';
|
|
34
|
+
</script>
|
|
35
|
+
|
|
36
|
+
<Footer>
|
|
37
|
+
<FooterCopyright href="/" by="Flowbite™" year={2022} />
|
|
38
|
+
<FooterLinkGroup ulClass="flex flex-wrap items-center mt-3 text-sm text-gray-500 dark:text-gray-400 sm:mt-0">
|
|
39
|
+
<FooterLink href="/">About</FooterLink>
|
|
40
|
+
<FooterLink href="/">Privacy Policy</FooterLink>
|
|
41
|
+
<FooterLink href="/">Licensing</FooterLink>
|
|
42
|
+
<FooterLink href="/">Contact</FooterLink>
|
|
43
|
+
</FooterLinkGroup>
|
|
44
|
+
</Footer>
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Footer with logo
|
|
48
|
+
|
|
49
|
+
<p>Use this component to show your brand’s logo, a few website links and the copyright notice on a second row.</p>
|
|
50
|
+
|
|
51
|
+
```svelte example
|
|
52
|
+
<script>
|
|
53
|
+
import { Footer, FooterCopyright, FooterLinkGroup, FooterBrand, FooterLink } from 'flowbite-svelte';
|
|
54
|
+
</script>
|
|
55
|
+
|
|
56
|
+
<Footer footerType="logo">
|
|
57
|
+
<div class="sm:flex sm:items-center sm:justify-between">
|
|
58
|
+
<FooterBrand href="https://flowbite.com" src="/images/flowbite-svelte-icon-logo.svg" alt="Flowbite Logo" name="Flowbite" />
|
|
59
|
+
<FooterLinkGroup ulClass="flex flex-wrap items-center mb-6 text-sm text-gray-500 sm:mb-0 dark:text-gray-400">
|
|
60
|
+
<FooterLink href="/">About</FooterLink>
|
|
61
|
+
<FooterLink href="/">Privacy Policy</FooterLink>
|
|
62
|
+
<FooterLink href="/">Licensing</FooterLink>
|
|
63
|
+
<FooterLink href="/">Contact</FooterLink>
|
|
64
|
+
</FooterLinkGroup>
|
|
65
|
+
</div>
|
|
66
|
+
<hr class="my-6 border-gray-200 sm:mx-auto dark:border-gray-700 lg:my-8" />
|
|
67
|
+
<FooterCopyright href="/" by="Flowbite™" />
|
|
68
|
+
</Footer>
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Social media icons
|
|
72
|
+
|
|
73
|
+
<p>This footer component can be used to show your brand’s logo, multiple rows of website links, a copyright notice and social media profile icons including Twitter, Facebook, Instagram, and more.</p>
|
|
74
|
+
|
|
75
|
+
```svelte example
|
|
76
|
+
<script>
|
|
77
|
+
import { Footer, FooterCopyright, FooterLinkGroup, FooterLink, FooterBrand, FooterIcon } from 'flowbite-svelte';
|
|
78
|
+
import { FacebookSolid, GithubSolid, DiscordSolid, TwitterSolid } from 'flowbite-svelte-icons';
|
|
79
|
+
import Dribble from '../../utils/icons/Dribble.svelte';
|
|
80
|
+
</script>
|
|
81
|
+
|
|
82
|
+
<Footer footerType="socialmedia">
|
|
83
|
+
<div class="md:flex md:justify-between">
|
|
84
|
+
<div class="mb-6 md:mb-0">
|
|
85
|
+
<FooterBrand href="https://flowbite.com" src="/images/flowbite-svelte-icon-logo.svg" alt="Flowbite Logo" name="Flowbite" />
|
|
86
|
+
</div>
|
|
87
|
+
<div class="grid grid-cols-2 gap-8 sm:gap-6 sm:grid-cols-3">
|
|
88
|
+
<div>
|
|
89
|
+
<h2 class="mb-6 text-sm font-semibold text-gray-900 uppercase dark:text-white">Resources</h2>
|
|
90
|
+
<FooterLinkGroup>
|
|
91
|
+
<FooterLink liClass="mb-4" href="/">Flowbite</FooterLink>
|
|
92
|
+
<FooterLink liClass="mb-4" href="/">Tailwind CSS</FooterLink>
|
|
93
|
+
</FooterLinkGroup>
|
|
94
|
+
</div>
|
|
95
|
+
<div>
|
|
96
|
+
<h2 class="mb-6 text-sm font-semibold uppercase text-gray-900 dark:text-white">Follow us</h2>
|
|
97
|
+
<FooterLinkGroup>
|
|
98
|
+
<FooterLink liClass="mb-4" href="/">GitHub</FooterLink>
|
|
99
|
+
<FooterLink liClass="mb-4" href="/">Discord</FooterLink>
|
|
100
|
+
</FooterLinkGroup>
|
|
101
|
+
</div>
|
|
102
|
+
<div>
|
|
103
|
+
<h2 class="mb-6 text-sm font-semibold uppercase text-gray-900 dark:text-white">Legal</h2>
|
|
104
|
+
<FooterLinkGroup>
|
|
105
|
+
<FooterLink liClass="mb-4" href="/">Privacy Policy</FooterLink>
|
|
106
|
+
<FooterLink liClass="mb-4" href="/">Terms & Conditions</FooterLink>
|
|
107
|
+
</FooterLinkGroup>
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
<hr class="my-6 border-gray-200 sm:mx-auto dark:border-gray-700 lg:my-8" />
|
|
112
|
+
<div class="sm:flex sm:items-center sm:justify-between">
|
|
113
|
+
<FooterCopyright href="/" by="Flowbite™" />
|
|
114
|
+
<div class="flex mt-4 space-x-6 sm:justify-center sm:mt-0">
|
|
115
|
+
<FooterIcon href="/">
|
|
116
|
+
<FacebookSolid class="w-4 h-4 text-gray-500 dark:text-gray-500 hover:text-gray-900 dark:hover:text-white" />
|
|
117
|
+
</FooterIcon>
|
|
118
|
+
<FooterIcon href="/">
|
|
119
|
+
<DiscordSolid class="w-4 h-4 text-gray-500 dark:text-gray-500 hover:text-gray-900 dark:hover:text-white" />
|
|
120
|
+
</FooterIcon>
|
|
121
|
+
<FooterIcon href="/">
|
|
122
|
+
<TwitterSolid class="w-4 h-4 text-gray-500 dark:text-gray-500 hover:text-gray-900 dark:hover:text-white" />
|
|
123
|
+
</FooterIcon>
|
|
124
|
+
<FooterIcon href="/">
|
|
125
|
+
<GithubSolid class="w-4 h-4 text-gray-500 dark:text-gray-500 hover:text-gray-900 dark:hover:text-white" />
|
|
126
|
+
</FooterIcon>
|
|
127
|
+
<FooterIcon href="/">
|
|
128
|
+
<Dribble />
|
|
129
|
+
</FooterIcon>
|
|
130
|
+
</div>
|
|
131
|
+
</div>
|
|
132
|
+
</Footer>
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
## Sitemap links
|
|
136
|
+
|
|
137
|
+
<p>If you have a website with many pages you can use this footer component to show a sitemap spanning the entire width of a row followed below by a copyright notice and social media icons.</p>
|
|
138
|
+
|
|
139
|
+
```svelte example
|
|
140
|
+
<script>
|
|
141
|
+
import { Footer, FooterLinkGroup, FooterLink, FooterBrand, FooterIcon, FooterCopyright } from 'flowbite-svelte';
|
|
142
|
+
import { FacebookSolid, GithubSolid, DiscordSolid, TwitterSolid } from 'flowbite-svelte-icons';
|
|
143
|
+
import Dribble from '../../utils/icons/Dribble.svelte';
|
|
144
|
+
</script>
|
|
145
|
+
|
|
146
|
+
<Footer footerType="sitemap">
|
|
147
|
+
<div class="grid grid-cols-2 gap-8 py-8 px-6 md:grid-cols-4">
|
|
148
|
+
<div>
|
|
149
|
+
<h2 class="mb-6 text-sm font-semibold text-gray-400 uppercase">Company</h2>
|
|
150
|
+
<FooterLinkGroup ulClass="text-gray-300">
|
|
151
|
+
<FooterLink liClass="mb-4" href="/">About</FooterLink>
|
|
152
|
+
<FooterLink liClass="mb-4" href="/">Careers</FooterLink>
|
|
153
|
+
<FooterLink liClass="mb-4" href="/">Brand Center</FooterLink>
|
|
154
|
+
<FooterLink liClass="mb-4" href="/">Blog</FooterLink>
|
|
155
|
+
</FooterLinkGroup>
|
|
156
|
+
</div>
|
|
157
|
+
<div>
|
|
158
|
+
<h2 class="mb-6 text-sm font-semibold uppercase text-gray-400">Download</h2>
|
|
159
|
+
<FooterLinkGroup ulClass="text-gray-300">
|
|
160
|
+
<FooterLink liClass="mb-4" href="/">Discord Server</FooterLink>
|
|
161
|
+
<FooterLink liClass="mb-4" href="/">Twitter</FooterLink>
|
|
162
|
+
<FooterLink liClass="mb-4" href="/">Facebook</FooterLink>
|
|
163
|
+
<FooterLink liClass="mb-4" href="/">Contact Us</FooterLink>
|
|
164
|
+
</FooterLinkGroup>
|
|
165
|
+
</div>
|
|
166
|
+
<div>
|
|
167
|
+
<h2 class="mb-6 text-sm font-semibold uppercase text-gray-400">Legal</h2>
|
|
168
|
+
<FooterLinkGroup ulClass="text-gray-300">
|
|
169
|
+
<FooterLink liClass="mb-4" href="/">Privacy Policy</FooterLink>
|
|
170
|
+
<FooterLink liClass="mb-4" href="/">Licensing</FooterLink>
|
|
171
|
+
<FooterLink liClass="mb-4" href="/">Terms & Conditions</FooterLink>
|
|
172
|
+
</FooterLinkGroup>
|
|
173
|
+
</div>
|
|
174
|
+
<div>
|
|
175
|
+
<h2 class="mb-6 text-sm font-semibold uppercase text-gray-400">Download</h2>
|
|
176
|
+
<FooterLinkGroup ulClass="text-gray-300">
|
|
177
|
+
<FooterLink liClass="mb-4" href="/">iOS</FooterLink>
|
|
178
|
+
<FooterLink liClass="mb-4" href="/">Android</FooterLink>
|
|
179
|
+
<FooterLink liClass="mb-4" href="/">Windows</FooterLink>
|
|
180
|
+
<FooterLink liClass="mb-4" href="/">MacOS</FooterLink>
|
|
181
|
+
</FooterLinkGroup>
|
|
182
|
+
</div>
|
|
183
|
+
</div>
|
|
184
|
+
<div class="py-6 px-4 bg-gray-700 md:flex md:items-center md:justify-between">
|
|
185
|
+
<FooterCopyright spanClass="text-sm text-gray-300 sm:text-center" href="/" by="Flowbite™" />
|
|
186
|
+
<div class="flex mt-4 space-x-6 sm:justify-center md:mt-0">
|
|
187
|
+
<FooterIcon href="/">
|
|
188
|
+
<FacebookSolid class="w-4 h-4 text-gray-500 dark:text-gray-500 hover:text-gray-900 dark:hover:text-white" />
|
|
189
|
+
</FooterIcon>
|
|
190
|
+
<FooterIcon href="/">
|
|
191
|
+
<DiscordSolid class="w-4 h-4 text-gray-500 dark:text-gray-500 hover:text-gray-900 dark:hover:text-white" />
|
|
192
|
+
</FooterIcon>
|
|
193
|
+
<FooterIcon href="/">
|
|
194
|
+
<TwitterSolid class="w-4 h-4 text-gray-500 dark:text-gray-500 hover:text-gray-900 dark:hover:text-white" />
|
|
195
|
+
</FooterIcon>
|
|
196
|
+
<FooterIcon href="/">
|
|
197
|
+
<GithubSolid class="w-4 h-4 text-gray-500 dark:text-gray-500 hover:text-gray-900 dark:hover:text-white" />
|
|
198
|
+
</FooterIcon>
|
|
199
|
+
<FooterIcon href="/">
|
|
200
|
+
<Dribble />
|
|
201
|
+
</FooterIcon>
|
|
202
|
+
</div>
|
|
203
|
+
</div>
|
|
204
|
+
</Footer>
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
## Sticky footer
|
|
208
|
+
|
|
209
|
+
Use this example to set create a sticky footer by using a fixed position to the bottom of the document page as the user scrolls up or down the main content area.
|
|
210
|
+
|
|
211
|
+
```svelte example class="relative"
|
|
212
|
+
<script>
|
|
213
|
+
import { Footer, FooterLinkGroup, FooterLink, ImagePlaceholder, TextPlaceholder, Skeleton, FooterCopyright } from 'flowbite-svelte';
|
|
214
|
+
</script>
|
|
215
|
+
|
|
216
|
+
<div style="height:300px;" class="overflow-scroll pb-16">
|
|
217
|
+
<Skeleton class="my-8" />
|
|
218
|
+
<ImagePlaceholder class="my-8" />
|
|
219
|
+
<TextPlaceholder class="my-8" />
|
|
220
|
+
</div>
|
|
221
|
+
<Footer class="absolute bottom-0 left-0 z-20 w-full">
|
|
222
|
+
<FooterCopyright href="/" by="Flowbite™" year={2022} />
|
|
223
|
+
<FooterLinkGroup ulClass="flex flex-wrap items-center mt-3 text-sm text-gray-500 dark:text-gray-400 sm:mt-0">
|
|
224
|
+
<FooterLink href="/">About</FooterLink>
|
|
225
|
+
<FooterLink href="/">Privacy Policy</FooterLink>
|
|
226
|
+
<FooterLink href="/">Licensing</FooterLink>
|
|
227
|
+
<FooterLink href="/">Contact</FooterLink>
|
|
228
|
+
</FooterLinkGroup>
|
|
229
|
+
</Footer>
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
## Component data
|
|
233
|
+
|
|
234
|
+
The component has the following props, type, and default values. See [types page](/docs/pages/typescript) for type information.
|
|
235
|
+
|
|
236
|
+
### Footer styling
|
|
237
|
+
|
|
238
|
+
- Use the `class` prop to overwrite the default class.
|
|
239
|
+
|
|
240
|
+
### FooterBrand styling
|
|
241
|
+
|
|
242
|
+
- Use the `classA` prop to overwrite `aClass`.
|
|
243
|
+
- Use the `classSpan` prop to overwrite `spanClass`.
|
|
244
|
+
- Use the `classImg` prop to overwrite `imgClass`.
|
|
245
|
+
|
|
246
|
+
### FooterCopyright styling
|
|
247
|
+
|
|
248
|
+
- Use `classSpan` prop to overwrite `classSpan`.
|
|
249
|
+
- Use `classA` prop to overwrite `aClass`.
|
|
250
|
+
|
|
251
|
+
### FooterIcon styling
|
|
252
|
+
|
|
253
|
+
- Use the `class` prop to overwrite `aClass`.
|
|
254
|
+
|
|
255
|
+
### FooterLink styling
|
|
256
|
+
|
|
257
|
+
- Use the `classLi` prop to overwrite `liClass`.
|
|
258
|
+
- Use the `classA` prop to overwrite `aClass`.
|
|
259
|
+
|
|
260
|
+
### FooterLinkGroup styling
|
|
261
|
+
|
|
262
|
+
- Use the `class` prop to overwrite `ulClass`.
|
|
263
|
+
|
|
264
|
+
<CompoAttributesViewer {components}/>
|
|
265
|
+
|
|
266
|
+
## References
|
|
267
|
+
|
|
268
|
+
- [Flowbite Footer](https://flowbite.com/docs/components/footer/)
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: componentLayout
|
|
3
|
+
title: Svelte Forms - Flowbite
|
|
4
|
+
breadcrumb_title: Svelte Forms
|
|
5
|
+
component_title: Forms
|
|
6
|
+
dir: Components
|
|
7
|
+
description: Use the Tailwind CSS form and input elements such as checkboxes, radios, textarea, text inputs to collect information from users with Flowbite
|
|
8
|
+
thumnailSize: w-40
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
<script>
|
|
12
|
+
import { TableProp, TableDefaultRow, CompoAttributesViewer } from '../../utils'
|
|
13
|
+
import { P, A, Heading } from '$lib'
|
|
14
|
+
|
|
15
|
+
const components = 'Input, Label, Helper, Fileupload, Textarea, Select, Checkbox, Radio, Toggle, MultiSelect'
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
The Input component allows you to change the input size, add disabled, helper text, and floating label.
|
|
19
|
+
|
|
20
|
+
## Input Sizes
|
|
21
|
+
|
|
22
|
+
User the size prop to change the input size. Choose one from 'sm:text-md' | 'text-sm' | 'sm:text-xs'. The default size is text-sm.
|
|
23
|
+
|
|
24
|
+
```svelte example
|
|
25
|
+
<script>
|
|
26
|
+
import { Label, Input } from 'flowbite-svelte';
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<div class="mb-6">
|
|
30
|
+
<Label for="large-input" class="block mb-2">Large input</Label>
|
|
31
|
+
<Input id="large-input" size="lg" placeholder="Large input" />
|
|
32
|
+
</div>
|
|
33
|
+
<div class="mb-6">
|
|
34
|
+
<Label for="default-input" class="block mb-2">Default input</Label>
|
|
35
|
+
<Input id="default-input" placeholder="Default input" />
|
|
36
|
+
</div>
|
|
37
|
+
<div class="mb-6">
|
|
38
|
+
<Label for="small-input" class="block mb-2">Small input</Label>
|
|
39
|
+
<Input id="small-input" size="sm" placeholder="Small input" />
|
|
40
|
+
</div>
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Disabled
|
|
44
|
+
|
|
45
|
+
Get started with this example if you want to apply the disabled state to an input field. Add the disabled to change the input to disabled.
|
|
46
|
+
|
|
47
|
+
```svelte example
|
|
48
|
+
<script>
|
|
49
|
+
import { Label, Input } from 'flowbite-svelte';
|
|
50
|
+
</script>
|
|
51
|
+
|
|
52
|
+
<Input id="disabled-input" class="mb-6" disabled value="Disabled input" />
|
|
53
|
+
<Input id="disabled-input-2" class="mb-6" disabled readonly value="Disabled readonly input" />
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Helper text
|
|
57
|
+
|
|
58
|
+
Use the helper prop to add your helper text. You can use HTML in the helper text.
|
|
59
|
+
|
|
60
|
+
```svelte example
|
|
61
|
+
<script>
|
|
62
|
+
import { Label, Input, Helper } from 'flowbite-svelte';
|
|
63
|
+
</script>
|
|
64
|
+
|
|
65
|
+
<Label class="block mb-2">Your email</Label>
|
|
66
|
+
<Input label="Email" id="email" name="email" required placeholder="name@flowbite.com" />
|
|
67
|
+
<Helper class="text-sm mt-2">
|
|
68
|
+
We’ll never share your details. Read our <a href="/" class="font-medium text-primary-600 hover:underline dark:text-primary-500"> Privacy Policy </a>
|
|
69
|
+
.
|
|
70
|
+
</Helper>
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Input element with icon
|
|
74
|
+
|
|
75
|
+
With the Input component, you can add <a href="https://flowbite-svelte.vercel.app/icons/heroicons" class="text-primary-700 dark:text-primary-500 hover:underline">Heroicons</a> or <a href="https://svelte-svg-icons.vercel.app/" class="text-primary-700 dark:text-primary-500 hover:underline">other icon sets</a>.
|
|
76
|
+
|
|
77
|
+
```svelte example
|
|
78
|
+
<script>
|
|
79
|
+
import { Label, Input, InputAddon, ButtonGroup } from 'flowbite-svelte';
|
|
80
|
+
import { EnvelopeSolid } from 'flowbite-svelte-icons';
|
|
81
|
+
</script>
|
|
82
|
+
|
|
83
|
+
<div class="mb-6">
|
|
84
|
+
<Label for="input-group-1" class="block mb-2">Your Email</Label>
|
|
85
|
+
<Input id="email" type="email" placeholder="name@flowbite.com">
|
|
86
|
+
<EnvelopeSolid slot="left" class="w-5 h-5 text-gray-500 dark:text-gray-400" />
|
|
87
|
+
</Input>
|
|
88
|
+
</div>
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Input element with addon
|
|
92
|
+
|
|
93
|
+
```svelte example
|
|
94
|
+
<script>
|
|
95
|
+
import { Label, Input, InputAddon, ButtonGroup } from 'flowbite-svelte';
|
|
96
|
+
import { UserCircleSolid } from 'flowbite-svelte-icons';
|
|
97
|
+
</script>
|
|
98
|
+
|
|
99
|
+
<div class="mb-6">
|
|
100
|
+
<Label for="website-admin" class="block mb-2">Username</Label>
|
|
101
|
+
<ButtonGroup class="w-full">
|
|
102
|
+
<InputAddon>
|
|
103
|
+
<UserCircleSolid class="w-4 h-4 text-gray-500 dark:text-gray-400" />
|
|
104
|
+
</InputAddon>
|
|
105
|
+
<Input id="website-admin" placeholder="elonmusk" />
|
|
106
|
+
</ButtonGroup>
|
|
107
|
+
</div>
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## Form validation
|
|
111
|
+
|
|
112
|
+
Use the following example to apply validation styles for success and error messages.
|
|
113
|
+
|
|
114
|
+
```svelte example
|
|
115
|
+
<script>
|
|
116
|
+
import { Label, Input, Helper } from 'flowbite-svelte';
|
|
117
|
+
</script>
|
|
118
|
+
|
|
119
|
+
<div class="mb-6">
|
|
120
|
+
<Label for="success" color="green" class="block mb-2">Your name</Label>
|
|
121
|
+
<Input id="success" color="green" placeholder="Success input" />
|
|
122
|
+
<Helper class="mt-2" color="green">
|
|
123
|
+
<span class="font-medium">Well done!</span>
|
|
124
|
+
Some success message.
|
|
125
|
+
</Helper>
|
|
126
|
+
</div>
|
|
127
|
+
<div class="mb-6">
|
|
128
|
+
<Label for='error' color='red' class='block mb-2'>Your name</Label>
|
|
129
|
+
<Input id='error' color='red' placeholder="Error input" />
|
|
130
|
+
<Helper class='mt-2' color='red'><span class="font-medium">Not so well done!</span> Some error message.</Helper>
|
|
131
|
+
</div>
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
## Textarea
|
|
135
|
+
|
|
136
|
+
```svelte example
|
|
137
|
+
<script>
|
|
138
|
+
import { Textarea } from 'flowbite-svelte';
|
|
139
|
+
let textareaprops = {
|
|
140
|
+
id: 'message',
|
|
141
|
+
name: 'message',
|
|
142
|
+
label: 'Your message',
|
|
143
|
+
rows: 4,
|
|
144
|
+
placeholder: 'Leave a comment...'
|
|
145
|
+
};
|
|
146
|
+
</script>
|
|
147
|
+
|
|
148
|
+
<Textarea {...textareaprops} />
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
## Select input
|
|
152
|
+
|
|
153
|
+
Get started with the default example of a select input component to get a single option selection.
|
|
154
|
+
|
|
155
|
+
```svelte example
|
|
156
|
+
<script>
|
|
157
|
+
import { Label, Select } from 'flowbite-svelte';
|
|
158
|
+
let selected;
|
|
159
|
+
|
|
160
|
+
let countries = [
|
|
161
|
+
{ value: 'us', name: 'United States' },
|
|
162
|
+
{ value: 'ca', name: 'Canada' },
|
|
163
|
+
{ value: 'fr', name: 'France' }
|
|
164
|
+
];
|
|
165
|
+
</script>
|
|
166
|
+
|
|
167
|
+
<Label>
|
|
168
|
+
Select an option
|
|
169
|
+
<Select class="mt-2" items={countries} bind:value={selected} />
|
|
170
|
+
</Label>
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
## MultiSelect
|
|
174
|
+
|
|
175
|
+
```svelte example class="h-80"
|
|
176
|
+
<script>
|
|
177
|
+
import { MultiSelect } from 'flowbite-svelte';
|
|
178
|
+
|
|
179
|
+
let selected = [];
|
|
180
|
+
let countries = [
|
|
181
|
+
{ value: 'us', name: 'United States' },
|
|
182
|
+
{ value: 'ca', name: 'Canada' },
|
|
183
|
+
{ value: 'fr', name: 'France' },
|
|
184
|
+
{ value: 'jp', name: 'Japan' },
|
|
185
|
+
{ value: 'en', name: 'England' }
|
|
186
|
+
];
|
|
187
|
+
</script>
|
|
188
|
+
|
|
189
|
+
<MultiSelect items={countries} bind:value={selected} />
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
## Checkbox
|
|
193
|
+
|
|
194
|
+
```svelte example class="flex flex-col gap-4"
|
|
195
|
+
<script>
|
|
196
|
+
import { Checkbox } from 'flowbite-svelte';
|
|
197
|
+
</script>
|
|
198
|
+
|
|
199
|
+
<Checkbox>Default checkbox</Checkbox>
|
|
200
|
+
<Checkbox checked>Checked state</Checkbox>
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
## Radio buttons
|
|
204
|
+
|
|
205
|
+
```svelte example class="flex flex-col gap-4"
|
|
206
|
+
<script>
|
|
207
|
+
import { Radio } from 'flowbite-svelte';
|
|
208
|
+
</script>
|
|
209
|
+
|
|
210
|
+
<Radio name="example">Default radio</Radio>
|
|
211
|
+
<Radio name="example" checked={true}>Checked state</Radio>
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
## File upload
|
|
215
|
+
|
|
216
|
+
```svelte example
|
|
217
|
+
<script>
|
|
218
|
+
import { Label, Fileupload } from 'flowbite-svelte';
|
|
219
|
+
|
|
220
|
+
let fileuploadprops = {
|
|
221
|
+
id: 'user_avatar'
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
let fileuploadprops2 = {
|
|
225
|
+
id: 'user_avatar2'
|
|
226
|
+
};
|
|
227
|
+
</script>
|
|
228
|
+
|
|
229
|
+
<Label class="pb-2">Upload file</Label>
|
|
230
|
+
<Fileupload {...fileuploadprops} />
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
## Toggle Switch
|
|
234
|
+
|
|
235
|
+
```svelte example class="flex flex-col gap-2"
|
|
236
|
+
<script>
|
|
237
|
+
import { Toggle } from 'flowbite-svelte';
|
|
238
|
+
</script>
|
|
239
|
+
|
|
240
|
+
<Toggle>Toggle me</Toggle>
|
|
241
|
+
<Toggle checked={true}>Checked toggle</Toggle>
|
|
242
|
+
<Toggle disabled>Disabled toggle</Toggle>
|
|
243
|
+
<Toggle checked disabled>Disabled checked</Toggle>
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
## Component data
|
|
247
|
+
|
|
248
|
+
The component has the following props, type, and default values. See [types page](/docs/pages/typescript) for type information.
|
|
249
|
+
|
|
250
|
+
<CompoAttributesViewer {components}/>
|
|
251
|
+
|
|
252
|
+
## References
|
|
253
|
+
|
|
254
|
+
- [Flowbite Forms](https://flowbite.com/docs/components/forms/)
|