Giter Site home page Giter Site logo

ymind / ant-design-blazor Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 7.0 155.05 MB

๐ŸŒˆ Enterprise-class UI components based on Ant Design and Blazor.

Home Page: https://append-it.github.io/ant-design-blazor/

License: MIT License

C# 25.89% HTML 21.88% JavaScript 0.22% Less 52.01%

ant-design-blazor's Introduction

Ant Design Blazor

A Blazor Component Library based on Ant Design

GitHub Nuget Build Gitter

Following the Ant Design specification, we developed a Blazor component library ant-design-blazor that contains a set of high quality components and demos for building rich, interactive user interfaces.

โœจ Features

  • ๐ŸŒˆ Enterprise-class UI designed for web applications.
  • ๐Ÿ“ฆ Out-of-the-box, high-quality Blazor components that can be shared in all hosting models.
  • ๐Ÿ›ก Written in C# with predictable static types, JavaScript is kept to a bare minimum.
  • โš™๏ธ Whole package of design resources and development tools.
  • ๐ŸŒ Icons and styles are synchronized with the core libraries of Ant Design.
  • ๐ŸŽจ Powerful theme customization.

Environment Support

  • .NET Core 3.1
  • Blazor WebAssembly 3.2 Release Candidate.
  • Support for server-side environments.
  • Support for WebAssembly static file deployments.
  • Support for 4 major browsers engines, and Internet Explorer 11+ (Blazor server-side only).
  • Runs directly on Electron and other Web standard-based environments like Web Window.
IE / Edge
Edge / IE
Firefox
Firefox
Chrome
Chrome
Safari
Safari
Opera
Opera
Electron
Electron
Edge 16 / IE 11โ€  522 57 11 44 Chromium 57

Due to the WebAssembly restriction, Blazor WebAssembly doesn't support Internet Explore, but Blazor Server supports IE 11โ€  with additional polyfills. See official documentation

Examples

WebAssembly static hosting examples on GitHub Pages:

Installation

  • Install .NET Core SDK 3.1.201 or later

  • Install the Blazor WebAssembly Templates

    $ dotnet new -i Microsoft.AspNetCore.Components.WebAssembly.Templates::3.2.0-rc1.20223.4
  • Create a Blazor WebAssembly Project

    $ dotnet new blazorwasm -o YourCoolApp
  • Go to the project folder of the application and install the Nuget package reference

    $ cd YourCoolApp
    $ dotnet add package Append.AntDesign
  • Register the services

    services.AddAntDesign();
  • Link the static files in wwwroot/index.html (WebAssembly) or Pages/_Host.razor (Server)

    • CSS - In the head element
        <link rel="stylesheet" href="_content/Append.AntDesign/css/ant-design-blazor.min.css" />
    • JavaScript - In the body element (at the end before the Blazor script).
        <script type="text/javascript" src="_content/Append.AntDesign/js/ant-design-blazor.min.js"></script>
        <!-- Blazor Framework Script Here -->

    Note that JavaScript is kept to a bare minimum, but some actions cannot simply not be done without it.

  • Add namespace in _Imports.razor

    @using Append.AntDesign.Core
    @using Append.AntDesign.Components
    @using Append.AntDesign.Services
  • Finally, use any of the components

    <Button Type="ButtonType.Primary" Label="Hello Ant Design">
      <Icon Type="IconType.Outlined.GitHub"/>
    </Button>

Local Development

  • Install .NET Core SDK 3.1.102 or later.

  • Make sure you're using Visual Studio 16.6+

  • Clone to local development

    $ git clone https://github.com/Append-IT/ant-design-blazor.git
  • Run the Append.AntDesign.Standalone or Append.AntDesign.Server

  • Visit https://localhost:5001 in your supported browser.

    The latest version of Visual Studio 2019 is recommended for development.

Links

Contributing

If you'd like to help us improve ant-design-blazor, just create a Pull Request. Feel free to report bugs and issues here.

If you're new to posting issues, we ask that you read How To Ask Questions The Smart Way and How to Ask a Question in Open Source Community and How to Report Bugs Effectively prior to posting. Well written bug reports help us help you!

ant-design-blazor's People

Contributors

daanded avatar joriscl avatar vertonghenb avatar woocodebjorn avatar woomarkus avatar ymind 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.