๐Ÿš€ ARS Web Components

Components and MixinsDemo

๐Ÿงช Components Demo

๐Ÿ“… ARS Calendar

Interactive calendar component for date selection and event management. Fully customizable with CSS styling.

ARS Calendar Demo โ†’

๐ŸŽจ ARS Color Select

Customizable color picker component with predefined color palette. Features overlay interface and custom events.

ARS Color Select Demo โ†’

๐Ÿ’ฌ ARS Dialog

Modal dialog component for user interactions. Supports custom content and styling with backdrop management.

ARS Dialog Demo โ†’

๐Ÿ“„ ARS Page Router

Component-based router for web apps. Use with ars-page-controller for navigation. Supports remote-call mixin for decoupled navigation.

ARS Page Router Demo โ†’

๐Ÿ”„ ARS Data Roller

Animated data display component that cycles through arrays of information with smooth 3D rotation animations. Perfect for status updates, statistics, and dynamic content.

ARS Data Roller Demo โ†’

๐Ÿ”ง Mixins Demo

๐ŸŽฏ Pressed Effect

Add touch and mouse press animations to any element. Creates beautiful radial gradient effects for interactive feedback.

Pressed Effect Demo โ†’

๐ŸŒ Localized

Internationalization support for web components. Automatically translates content based on language settings using arslib integration.

Localized Demo โ†’

๐Ÿ“ก Remote Call

Inter-component communication system. Allows components to call methods on other components through custom events without direct references.

Remote Call Demo โ†’

๐Ÿ‘† Swipeable

Touch gesture support for web components. Detects swipe directions (up, down, left, right) and calls corresponding callback methods.

Swipeable Demo โ†’

๐Ÿ–ฑ๏ธ Draggable

Drag gesture support for web components. Detects drag start, move, and end events with customizable thresholds. Works seamlessly with other mixins using PointerCoordinator.

Draggable Demo โ†’

๐Ÿ‘๏ธ Show If Property

Conditional visibility based on property values. Shows or hides elements when specified properties change, perfect for dynamic interfaces.

Show If Property Demo โ†’

๐Ÿ”„ Roll Mixin

360ยฐ rotation animation on hover with configurable duration. Adds playful interactions to buttons, cards, or any element with automatic hover detection and programmatic control.

Roll Mixin Demo โ†’

๐Ÿš€ Getting Started

๐Ÿ“ฆ Installation

Install the package via npm:

npm install ars-web-components

๐Ÿ“ Usage Example

Import and use components in your project:

import { ArsButton } from 'ars-web-components';

// In your HTML:
<button is="ars-button" id="myBtn" effect-color="#00d4ff">
  Click me!
</button>

๐Ÿ”ง Development Server

To run this demo suite locally:

cd ars-web-components
npm start

This will start an HTTP server on port 8080 and open your browser automatically.

โœจ Features

๐ŸŽฏ Pure JavaScript

No framework dependencies. Works with any modern web project, from vanilla JS to React, Vue, or Angular.

๐ŸŽจ CSS-Friendly

Components are styling-agnostic. Use your own CSS classes and frameworks without conflicts.

โšก ES Modules

Modern module system with proper imports/exports. Tree-shakeable and optimized for bundlers.

๐Ÿ“ฑ Touch Support

Full mobile and desktop interaction support with touch events and responsive design considerations.