Skip to content

Reusable Web Components library for modern web development, created by Steph Crown.

License

Notifications You must be signed in to change notification settings

steph-crown/crown-elements

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Built With Love By Stephen

crown elements

Crown Elements is a collection of reusable and customizable web components designed to simplify front-end development and enhance user interface consistency across web applications.

Installation

Note: Crown Elements is currently in development and not yet available for installation.

Once the project is completed, you'll be able to install Crown Elements via npm:

npm install @crownelements/core

Or include it directly in your HTML:

<script
  type="module"
  src="https://unpkg.com/@crownelements/[email protected]/dist/crownelements/crownelements.esm.js"
></script>

Usage

Crown Elements can be used in any web application, regardless of the framework or library you're using. Here's an example of how to use the crown-button component in a simple HTML file:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Crown Elements Example</title>
  </head>
  <body>
    <crown-button>Click me</crown-button>

    <script src="https://unpkg.com/@crownelements/[email protected]/dist/core/core.esm.js"></script>
  </body>
</html>

Components in Progress

Crown Elements is actively being developed, and the following components are planned to be included:

Basic Elements

  1. Buttons: Standard, Icon, Floating Action Button (FAB), Toggle
  2. Inputs: Text, Number, Password, Email, File, Date, Time, Color Picker
  3. Form Controls: Checkboxes, Radio Buttons, Switches, Range Sliders
  4. Dropdowns: Simple Dropdown, Multi-Select, Searchable Dropdown
  5. Labels and Tags: For categorization or markup
  6. Icons: A variety of commonly used icons
  7. Loaders and Spinners: For indicating loading states
  8. Progress Bars: Determinate, Indeterminate, Circular
  9. Tooltips: For additional information display
  10. Badges: For notifications, counts
  11. Typography: Headings, Paragraphs, Text Utilities

Navigation

  1. Menus: Sidebar, Context Menu, Breadcrumb, Pagination
  2. Tabs: Standard Tabs, Scrollable, Vertical
  3. Accordions: For collapsible content areas
  4. Navigation Bars: Top bar, Bottom Navigation
  5. Steppers: Horizontal, Vertical, Linear, Non-linear

Data Display

  1. Tables: Basic, Sortable, Filterable, Expandable
  2. Lists: Simple List, Nested List, Interactive
  3. Cards: Basic, Image Cards, Interactive
  4. Modals: Dialogs, Popups, Lightboxes
  5. Toasts and Snackbars: For transient messages
  6. Timelines: For chronological data display
  7. Chips: For compact elements representation
  8. Data Grid: Advanced grid system
  9. Avatar: User or character representation
  10. Image Gallery: Grid, Carousel

Feedback & Messages

  1. Alerts: For warnings, errors, information, and success messages
  2. Popovers: For floating dialog boxes
  3. Confirmation Dialogs: For critical action confirmations

Layout Components

  1. Grid System: Responsive grid layout
  2. Dividers: Horizontal, Vertical
  3. Spacer: For adding space between components
  4. Panels: For grouping content
  5. Scroll Container: For custom scroll areas

Interactive Components

  1. Date and Time Pickers: Calendar, Time Selection
  2. Tree View: For hierarchical data
  3. Rating Component: For user ratings
  4. Autocomplete: For predictive text inputs
  5. Drag and Drop Interface: For interactive element repositioning
  6. Expandable Search Bar

Utility Components

  1. Clipboard Copy: For copying text to clipboard
  2. Data Export: CSV, Excel export for tables
  3. Internationalization: Language switcher
  4. Theme Switcher: Light/Dark mode, Color themes

Specialized Components

  1. Maps: Interactive maps integration
  2. Charts and Graphs: Line, Bar, Pie, Doughnut, Radar
  3. Audio/Video Players: Custom media players
  4. File Uploaders: Drag and drop, file queue
  5. WYSIWYG Editor: Rich text editor
  6. Markdown Editor: For markdown input
  7. Code Editor: Syntax-highlighted text areas
  8. E-commerce Components: Product cards, Shopping cart
  9. Social Media Share Buttons
  10. Password Strength Meter

Accessibility Components

  1. Skip Links: For navigation without a mouse
  2. Screen Reader Only Content

Advanced/Composite Components

  1. Dashboards: Pre-built layouts for dashboards
  2. Form Wizard: Multi-step forms
  3. Landing Page Templates
  4. Login/Signup Forms: With validation
  5. Profile Page Layout

Experimental/Fun Components

  1. Parallax Scrolling Elements
  2. Animated Charts and Graphs
  3. 3D Elements

Mobile Specific

  1. Bottom Sheets
  2. Swipeable Views

License

Crown Elements is released under the MIT License. See the LICENSE file for details.

About

Reusable Web Components library for modern web development, created by Steph Crown.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published