Giter Site home page Giter Site logo

ngx-youi / ngx-youi Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 2.52 MB

NGX-YOUI is a Highly customizable library of Angular UI components for content and styles

Home Page: https://ngx-youi.github.io/NGX-YOUI/

License: MIT License

JavaScript 0.84% HTML 28.58% TypeScript 63.54% SCSS 3.83% CSS 3.12% Less 0.10%
ngx-youi frontend angular-13 ngx components ivy typescript ui-components

ngx-youi's Introduction

NGX-YOUI

npm MIT

NGX-YOUI is an Angular UI Library that can be highly customized with content and styles. You can easily integrate with other CSS frameworks and UI Library, such as Tailwind, Bootstrap, PrimeNG, Angular Material etc.

  1. Customize the presentation content of components through ng-template or dynamic custom components.
  2. Customize the rendering style of the component through CSSClass properties.

Document

https://ngx-youi.github.io/NGX-YOUI/

Demo

https://ngx-youi.github.io/NGX-YOUI/auth/user/list

NPM

https://www.npmjs.com/package/ngx-youi

Getting Start

How To Install

npm i ngx-youi --save

Import Material Icon font

Append Below setting in "YOUR_PROJECT.architect.build.options.assets" of angular.json

architect": {
  ...,
  "build": {
    ...,
    "options": {
      "assets": {
        {
          "glob": "**/*.woff",
          "input": "./node_modules/material-icons/iconfont",
          "output": "/assets/material-icons/iconfont"
        },
        {
          "glob": "**/*.woff2",
          "input": "./node_modules/material-icons/iconfont",
          "output": "/assets/material-icons/iconfont"
        }
      }
    }
  }
}

Preload Material Icon Font in <head> of index.html

<!doctype html>
<html>
  <head>
    ...  
    <!-- Material icon -->
    <link rel="preload" href="assets/material-icons/iconfont/material-icons.woff" as="font" crossorigin>
    <link rel="preload" href="assets/material-icons/iconfont/material-icons-outlined.woff" as="font" crossorigin>
    <link rel="preload" href="assets/material-icons/iconfont/material-icons-round.woff" as="font" crossorigin>
    <link rel="preload" href="assets/material-icons/iconfont/material-icons-sharp.woff" as="font" crossorigin>
    <link rel="preload" href="assets/material-icons/iconfont/material-icons.woff2" as="font" crossorigin>
    <link rel="preload" href="assets/material-icons/iconfont/material-icons-outlined.woff2" as="font" crossorigin>
    <link rel="preload" href="assets/material-icons/iconfont/material-icons-round.woff2" as="font" crossorigin>
    <link rel="preload" href="assets/material-icons/iconfont/material-icons-sharp.woff2" as="font" crossorigin>
  </head>
  <body>
    <app-root></app-root>
  </body>
</html>

Import SVG Loaders

Append Below setting in "YOUR_PROJECT.architect.build.options.assets" of angular.json

architect": {
  ...,
  "build": {
    ...,
    "options": {
      "assets": {
        {
          "glob": "**/*",
          "input": "./node_modules/svg-loaders/svg-smil-loaders",
          "output": "/assets/svg-loaders/"
        }
      }
    }
  }
}

Import CSS

Import a CSS file for all components

/* style.css */

@import '~ngx-youi/style/index.css';

Import a CSS file for a single component (Tree Shaking)

/* style.css */

/* import youi-common.css before import css of component */
@import "~ngx-youi/style/youi-common.css";
@import '~ngx-youi/style/component/breadcrumb.css';

Import Module

Import a module file for all components

// app.module.ts

import { NgModule } from "@angular/core";
import { NgxYouiModule } from "ngx-youi"

@NgModule({
  imports: [..., NgxYouiModule]
})

export class AppModule {}

Import a module file for a single component (Tree Shaking)

// app.module.ts

import { NgModule } from "@angular/core";
import { BreadcrumbModule } from 'ngx-youi';

@NgModule({
  imports: [..., BreadcrumbModule],
})
  
export class AppModule {}

ngx-youi's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.