Skip to content

paramedick/UI

 
 

Repository files navigation

In Early Development Version, Currently Unavailable

Air-Components Logo

中文 npm version npm downloads GitHub license
Last Commit Dependabot Status

Project Highlights

  • Modular Architecture: Focused on creating reusable and flexible components.

  • Modern Design Principles: Emphasizes minimalist UI design with support for multiple themes and visual styles.

  • Customizable Components: Easily adapt component styles to meet project-specific requirements using standard CSS.


Installation

Install Air-Components using npm:

npm install @aircomponents/ui

CDN

  <title>Test AirComponents</title>
  <script type="module" src="https://unpkg.com/@aircomponents/[email protected]/dist/aircomponents/aircomponents.esm.js"></script>
</head>
<body>
  <air-button size="medium" variant="solid" color="primary">Primary Button</air-button>
  <air-button size="medium" variant="outline" color="primary">Outline Primary</air-button>
</body>
</html>
import '@aircomponents/ui';

document.body.innerHTML = `
  <air-button size="medium" variant="solid" color="primary">Primary Button</air-button>
`;

React

import 'air-components';

function App() {
  return (
    <div>
      <air-button size="medium" variant="solid" color="primary">
        Primary Button
      </air-button>
    </div>
  );
}

export default App;

Vue

Vue Config

module.exports = {
  chainWebpack: config => {
    config.module
      .rule('vue')
      .use('vue-loader')
      .loader('vue-loader')
      .tap(options => {
        options.compilerOptions = {
          isCustomElement: tag => tag.startsWith('air-'),
        };
        return options;
      });
  },
};

USE Vue

<template>
  <div>
    <air-button size="medium" variant="solid" color="primary">
      Primary Button
    </air-button>
  </div>
</template>

<script>
import 'air-components';
export default {
  name: 'App',
};
</script>

Development Notes

This project is in early development; features and components are actively being built

Contributions and feedback are welcome. Visit our GitHub repository for more information

Packages

No packages published

Languages

  • TypeScript 71.9%
  • HTML 15.4%
  • CSS 10.9%
  • JavaScript 1.8%