Git Product home page Git Product logo

chataize / dopamine-ui Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 273 KB

Aesthetic C# .NET Blazor component library that makes the UI seamless and entertaining to use.

Home Page: https://dopamineui.chataize.com

License: GNU General Public License v3.0

HTML 25.25% JavaScript 0.68% CSS 72.86% Shell 0.47% C# 0.74%
asp-net-core blazor component controls dotnet dotnet-core framework library razor tailwind tailwindcss ui ui-components ux ui-framework ui-library component-library design blazor-server css

dopamine-ui's Introduction

hero

Dopamine UI

An aesthetic C# .NET Blazor component library that makes the UI seamless and entertaining to use.

Installation

NuGet Package

.NET CLI

dotnet add package ChatAIze.DopamineUI

Package Manager Console

Install-Package ChatAIze.DopamineUI

CSS

App.razor File

<head>
  <!-- ... -->
  <link rel="stylesheet" href="_content/ChatAIze.DopamineUI/css/tailwind.css">
  <!-- ... -->
</head>

Note

DopamineUI is built with Tailwind CSS, however, you don't have to install, set up, or use Tailwind CSS by yourself. All styles are already pre-generated and included in the NuGet package.

Usage

For detailed examples, see our preview app.

Button

Standard

<DPButton Text="Sign In" />

Full Width

<DPButton Text="Sign In" IsFullWidth="true" />

Accent

<DPButton Text="Create Account" Style="ButtonStyle.Accent" />

Destructive

<DPButton Text="Delete Account" Style="ButtonStyle.Destructive" />

Loading

<DPButton Text="Download" IsLoading="true" />

Disabled

<DPButton Text="Upgrade" IsDisabled="true" />

Text Field

Unlabeled

<DPTextField @bind-Value="Text" />

Standard

 <DPTextField Label="Username" @bind-Value="Text" />

Email

 <DPTextField Label="Email" Type="TextFieldType.Email" @bind-Value="PropertyABC123" />

Password

 <DPTextField Label="Password" Type="TextFieldType.Password" @bind-Value="PropertyABC123" />

Full Width

 <DPTextField Label="Title" IsFullWidth="true" @bind-Value="PropertyABC123" />

Loading

 <DPTextField Label="Display Name" IsLoading="true" @bind-Value="PropertyABC123" />

Disabled

 <DPTextField Label="User ID" IsDisabled="true" @bind-Value="PropertyABC123" />

Toggle Switch

Unlabeled

<DPToggleSwitch @bind-value="PropertyABC123" />

Standard

<DPToggleSwitch Label="Airplane Mode" @bind-value="PropertyABC123" />

Full Width

<DPToggleSwitch Label="Airplane Mode" IsFullWidth="true" @bind-value="PropertyABC123" />

Framed

<DPToggleSwitch Label="Airplane Mode" IsFrameVisible="true" @bind-value="PropertyABC123" />

Disabled

<DPToggleSwitch Label="Airplane Mode" IsDisabled="true" @bind-value="PropertyABC123" />

Checkbox

Unlabeled

<DPCheckBox @bind-value="PropertyABC123" />

Standard

<DPCheckBox Label="Remember Me" @bind-value="PropertyABC123" />

Full Width

<DPCheckBox Label="Remember Me" IsFullWidth="true" @bind-value="PropertyABC123" />

Framed

<DPCheckBox Label="Remember Me" IsFrameVisible="true" @bind-value="PropertyABC123" />

Disabled

<DPCheckBox Label="Remember Me" IsDisabled="true" @bind-value="PropertyABC123" />

Radio Button

Unlabeled

<DPRadioButton @bind-value="PropertyABC123" />

Standard

<DPRadioButton Label="Option A" @bind-value="PropertyABC123" />

Full Width

<DPRadioButton Label="Option B" IsFullWidth="true" @bind-value="PropertyABC123" />

Framed

<DPRadioButton Label="Option C" IsFrameVisible="true" @bind-value="PropertyABC123" />

Disabled

<DPRadioButton Label="Option D" IsDisabled="true" @bind-value="PropertyABC123" />

Divider

<DPDivider />

dopamine-ui's People

Contributors

marcel2215 avatar

Stargazers

HuaFangYun 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.