@htunesys/hexawebshare
v0.1.2
Published
A comprehensive Svelte 5 component library with DaisyUI and Tailwind CSS
Maintainers
Readme
hexaWebShare
A comprehensive Svelte 5 component library built with DaisyUI and Tailwind CSS, offering a rich collection of UI components for modern web applications.
✨ Features
- 🎨 100+ Components - Buttons, forms, layouts, overlays, and more
- ⚡ Svelte 5 - Built with the latest Svelte features and runes
- 🎭 DaisyUI Integration - Beautiful, themeable components
- 🎯 TypeScript - Full type safety and IntelliSense support
- 📱 Responsive - Mobile-first, fully responsive designs
- ♿ Accessible - WCAG compliant components
- 🎨 Themeable - Multiple DaisyUI themes supported
📦 Installation
Install from NPM (Recommended)
# Install the latest version
pnpm add @htunesys/hexawebshare
# Or install a specific version
pnpm add @htunesys/[email protected]Install Peer Dependencies
You must install these dependencies in your project:
pnpm add -D tailwindcss@^4 daisyui@^5 lucide-svelte@^0.563🚀 Quick Setup
1. Configure Tailwind CSS
Create or update your CSS file (e.g., src/app.css):
@import 'tailwindcss';
@plugin 'daisyui' {
themes:
light --default,
dark --prefersdark;
logs: false;
}
@plugin '@tailwindcss/forms';
@plugin '@tailwindcss/typography';2. Import and Use Components
<script lang="ts">
import { Button, Card, Input } from '@htunesys/hexawebshare';
</script>
<Card>
<h2>Login Form</h2>
<Input label="Email" type="email" placeholder="Enter your email" />
<Input label="Password" type="password" placeholder="Enter your password" />
<Button variant="primary">Sign In</Button>
</Card>📚 Available Components
Core Components
Buttons
Button- Versatile button with variantsIconButton- Icon-only buttonButtonGroup- Group multiple buttonsToggleButton- Toggle state buttonSegmentedControl- Segmented control buttons
Forms
Input- Text input with validationSelect- Dropdown selectCheckbox- Checkbox inputRadioGroup- Radio button groupSwitch- Toggle switchTextarea- Multi-line text inputDatePicker- Date selectionTimePicker- Time selectionFileUpload- File upload componentNumberInput- Numeric input with stepperSearchInput- Search input with iconSlider- Range sliderMultiSelect- Multi-selection dropdown
Layout
Card- Content containerContainer- Page containerGrid- Grid layoutRow/Col- Flex layoutDivider- Visual separatorSection- Content sectionPageWrapper- Full page wrapper
Feedback
Alert- Alert messagesToast- Toast notificationsSpinner- Loading spinnerProgressBar- Progress indicatorLoader- Full-page loaderSkeletonLoader- Skeleton loading stateCallout- Important callouts
Typography
Heading- Headings (h1-h6)Text- Text with variantsParagraph- Paragraph textLink- Styled linkLead- Lead paragraphMutedText- Muted text
Media
Avatar- User avatarBadge- Status badgeChip- Chip/tag componentIcon- Icon wrapper (Lucide)Pill- Pill badgeTag- Tag componentTooltip- Tooltip overlay
Data Display
Table- Data tableList/ListItem- List componentsStatusBadge- Status indicatorStatusDot- Status dotLabel- Form labelEmptyState- Empty state placeholder
Navigation & Overlays
Menu- Dropdown menuModal- Modal dialogDrawer- Side drawerDropdown- Dropdown componentTabs- Tab navigationAccordion- Expandable sectionsBreadcrumbs- Breadcrumb navigationPagination- Page navigationSidebar- Side navigationStepper- Step indicatorSteps- Multi-step processPopover- Popover overlayContextMenu- Right-click menu
Admin Components
AdminLayout- Admin panel layoutAdminSidebar- Admin navigation sidebarDataTableToolbar- Data table toolbar
E-commerce Components
ProductCard- Product display cardProductGrid- Product grid layoutProductList- Product list viewPriceDisplay- Price formatterProductRating- Star ratingAddressCard- Address displayAddressList- Address listAccountSidebar- Account sidebar
Marketing Components
HeroSection- Hero sectionCTASection- Call-to-action sectionFeaturesSection- Features showcasePricingSection- Pricing tablesTestimonialsSection- Customer testimonialsFAQAccordionSection- FAQ sectionStatsSection- Statistics displayBlogListSection- Blog listContactSection- Contact formNavbar- Navigation barSiteFooter- Site footerLogoCloud- Logo showcaseTimeline- Timeline componentRoadmap- Product roadmap
Utility Components
FooterBar- Footer componentGlobalSearchBar- Global searchThemeToggle- Dark/light theme toggleLanguageSwitcher- Language selectorConfirmDialog- Confirmation dialogFilterPanel- Filter sidebarKeyboardShortcutHint- Keyboard hints
🎨 Theming
hexaWebShare uses DaisyUI themes. Available themes:
@plugin 'daisyui' {
themes:
light, dark, cupcake, bumblebee, emerald, corporate, synthwave, retro, cyberpunk, valentine,
halloween, garden, forest, aqua, lofi, pastel, fantasy, wireframe, black, luxury, dracula, cmyk,
autumn, business, acid, lemonade, night, coffee, winter;
}📖 TypeScript Support
All components are fully typed with TypeScript:
import { Button, type ButtonProps } from '@htunesys/hexawebshare';
const props: ButtonProps = {
variant: 'primary',
size: 'md',
disabled: false
};🔄 Version Management
# Install latest version
pnpm add @htunesys/hexawebshare
# Install specific version
pnpm add @htunesys/[email protected]
# Update to latest
pnpm update @htunesys/hexawebshareSee all versions on NPM
🛠️ Development Commands
| Command | Description |
| ---------------------- | ------------------------------ |
| pnpm dev | Start SvelteKit dev server |
| pnpm storybook | Start Storybook dev server |
| pnpm build | Build library package |
| pnpm prepack | Build package for distribution |
| pnpm build-storybook | Build static Storybook |
| pnpm check | TypeScript type checking |
| pnpm format | Format code with Prettier |
| pnpm lint | Check code formatting |
📂 Component Structure
src/components/
├── core/ # Core UI components (buttons, forms, layout)
├── admin/ # Admin panel components
├── b2b/ # B2B workspace components
├── ecommerce/ # E-commerce components
├── marketing/ # Marketing components
└── utility/ # Utility components🤝 Contributing
We welcome contributions! Please see our Contributing Guide for details.
📄 License
MIT License - see LICENSE file for details.
🏢 About
Built by hexaTune LLC
- GitHub: hTuneSys/hexaWebShare
- Storybook: View Components
⚠️ Requirements
- Node.js >= 18.0.0
- pnpm (recommended) or npm
- Svelte >= 5.0.0
- Tailwind CSS >= 4.0.0
- DaisyUI >= 5.0.0
- lucide-svelte >= 0.563.0
🙏 Acknowledgments
- Built with Svelte 5
- Styled with Tailwind CSS
- Components from DaisyUI
- Icons by Lucide
- Documented with Storybook
