MatBlazor comprises a range of components which implement common interaction patterns according to the Material Design specification.
- MatBlazor.com - Documentation and demo website
- MatBlazor - Documentation and demo website - ClientSideBlazor
- BlazorFiddle example
- BlazorBoilerplate - A Real World Starter App with Authentication / Authorization built with MatBlazor. Demo.
Don't know what Blazor is? Read here
Complete all Blazor dependencies.
- .NET Core 3.0
- Visual Studio 2019 Preview with the ASP.NET and web development workload selected.
- The latest Blazor extension from the Visual Studio Marketplace.
To Install
Install-Package MatBlazor
or
dotnet add package MatBlazor
For client-side and server-side Blazor - add script section to index.html or _Host.cshtml (head section)
<script src="_content/MatBlazor/dist/matBlazor.js"></script>
<MatButton OnClick="@Click">Text @ButtonState</MatButton>
<MatButton Raised="true">Raised</MatButton>
<MatButton Unelevated="true">Unelevated</MatButton>
<MatButton Outlined="true">Outlined</MatButton>
<MatButton Dense="true">Dense</MatButton>
@code
{
string ButtonState = "";
void Click(UIMouseEventArgs e)
{
ButtonState = "Clicked";
}
}
MatBlazor does not run under the umbrella of any company or anything like that. It is an independent project created in spare time. The development is active and we are working hard to release great things for you.
If you think that this project helped you or your company in any way, you can consider becoming a backer/sponsor.
- Yevhen Shmakov
- Maurizio Verde
- Jacobus Terhorst
- Xiao Song
- Radu Tomuleasa
- Martin Friesenbichler
- SmartView Systems
MatTable
- complete new component
MatAutocomplete
- new implementation of componentMatDatePicker
- improvements
- MatSelectItem
<TValue>
- Populate options using Items collections and optional
ItemTemplate
- Generic type supports:
TValue
parameter should be defined if he is not inferred. - Supports Blazor validation using
EditContext
- Supported types: any
- Populate options using Items collections and optional
- MatSelectValue
<TItem, TValue>
- Populate options using Items collections and optional
ItemTemplate
usingValueSelector
- Generic type supports:
TValue
parameter should be defined if he is not inferred. - Supports Blazor validation using
EditContext
- Supported types: any
- Populate options using Items collections and optional
- MatFileUpload
- PR: Added MatTreeView #360 (Thanks to sprotty)
- PR: Prevent circular overflow on MatNumericUpDownField #378 (Thanks to sebestyn168)
- PR: Added @key attribute to MatTable table row #361 (Thanks to plebnz)
- PR: Matlist selectedIndex default value set to -1 #354 (Thanks to radutomy)
- This release contain a lot of breaking changes, sorry for that.
- The main goal of this release was to unify all components for forms, generic type support, reduction of dependence of JS, active use of OOP and the possibility of more active expansion in the future.
- Update to .NET Core 3.1 Preview 4
- MatAutocomplete
MatAutocomplete
renamed toMatAutocompleteList
ItemType
renamed toTItem
Collection
renamed toItems
- new
MatAutocomplete
component will be in 2.1.0
- MatCheckbox
- Generic type supports:
TValue
parameter should be defined if he is not inferred. - Supported types:
bool
,bool?
- Indeterminate mode
- Supports Blazor validation using
EditContext
Checked
renamed toValue
CheckedChanged
renamed toValueChanged
- Unmatched
Attributes
is appended to main component HtmlElement (not InputElement). UseInputAttributes
instead.
- Generic type supports:
- MatDatePicker
- Generic type supports:
TValue
parameter should be defined if he is not inferred. - Supported types:
DateTime
,DateTime?
- Supports Blazor validation using
EditContext
DateFormat
renamed toFormat
, and this is full .NET formatting of DateTimeMinimum
,Maximum
paramneteres addedNoCalendar
renamed toDisableCalendar
AltFormat
,AltInputClass
,Inline
removed
- Generic type supports:
- MatNumericUpDownField
- Generic type supports:
TValue
parameter should be defined if he is not inferred. - Supported types:
sbyte
,byte
,short
,ushort
,int
,uint
,long
,ulong
,char
,float
,double
,decimal
,decimal?
- Supports Blazor validation using
EditContext
- Generic type supports:
- MatRadioButton
- Generic type supports:
TValue
parameter should be defined if he is not inferred. - Supported types: any
- Supports Blazor validation using
EditContext
- Generic type supports:
- MatSelect
- Populate options using
MatOption
component manually - Generic type supports:
TValue
parameter should be defined if he is not inferred. - Supports Blazor validation using
EditContext
- Supported types:
string
,sbyte
,byte
,short
,ushort
,int
,uint
,long
,ulong
,char
,float
,double
,decimal
,decimal?
,DateTime
,DateTime?
,bool
,bool?
- For string values -
MatSelectString
,MatOptionString
- Populate options using
- MatSlider
- Generic type supports:
TValue
parameter should be defined if he is not inferred. - Supported types:
sbyte
,byte
,short
,ushort
,int
,uint
,long
,ulong
,char
,float
,double
,decimal
,decimal?
- Supports Blazor validation using
EditContext
- Added
Step
parameter
- Generic type supports:
- MatSlideToggle
- Generic type supports:
TValue
parameter should be defined if he is not inferred. - Supported types:
bool
,bool?
- Supports Blazor validation using
EditContext
- Generic type supports:
- MatTextField, MatStringField
- Generic type supports:
TValue
parameter should be defined if he is not inferred. - Supported types:
string
,sbyte
,byte
,short
,ushort
,int
,uint
,long
,ulong
,char
,float
,double
,decimal
,decimal?
,DateTime
,DateTime?
,bool
,bool?
- Supports Blazor validation using
EditContext
- New component
MatStringField
- replacement oldMatTextField
- just forstring
values without genericTValue
parameter.
- Generic type supports:
MatBlazorInstall
- removed
- Update to .NET Core 3.1 Preview 1
- Added an active index to the MatTabGroup and MatTabBar #289 (Thanks to chris1411)
- Auto-Active MatNatItem #268 (Thanks to enkodellc)
- Fixed "Items per Page" #290 (Thanks to msitconsulting)
- Update Readme.md (EmbeddedBlazorContent) #270 (Thanks to manuel3108)
- Update BlazorBoilerplate description #299 (Thanks to enkodellc)
- Update to .NET Core 3.0
- Update to .NET Core 3.0 RC 1
- Support arrow keys and Enter in Autocomplete #237 (Thanks to dga711)
- MatDialog: New CanBeClosed property #241 (Thanks to dga711)
- Fix: Enhanced MatSelect throws exception(#231) #242 (Thanks to aviezzi)
- PR: Add some padding to toasts #238 (Thanks to dga711)
- PR: AutoComplete list cleaner look #239 (Thanks to dga711)
- Change info in Nuget package
- Update to .NET Core 3.0 Preview 9
- PR: Return Toast instance on IMatToaster.Add method #228 (Thanks to Sebbstar)
- PR: Replaced all @functions by @code. #233 (Thanks to SeppPenner)
- Fix: MatAutocomplete StringValue clearing #216 (Thanks to lukblazewicz)
- Fix: MatSelect option list in enhanced mode showing example list #221 (Thanks to aviezzi)
- MatTable: Fix broken paginator when infinite items selected #202 (Thanks to dga711)
- MatDialog.IsOpenChanged now also fires on open #200 (Thanks to dga711
- Fixed: MatTooltip: Position inside
<table>
is off #195
- Check ComponentContext.IsConnected for all Js-Invoke's
- This should have solved the problem with the
RenderStaticComponentAsync
, but did not. - You should use
RenderComponentAsync
, also because in Preview 9RenderStaticComponentAsync
will be removed (dotnet/aspnetcore#12245).
- This should have solved the problem with the
- PR: Incorporate validation styling and improve EditContext demo #190 (Thanks to ebekker)
- Update to .NET Core 3.0 Preview 8
- Fix of EditContext for MatDatePicker
- PR: Add flatpickr options to MatDatePicker #182 (Thanks to djinnet)
- PR: Initial support for EditContext-based validation #178 (Thanks to ebekker)
- PR: Adding example for nested sub menus and new "toggle all" feature #176 (Thanks to ebekker)
- PR: Adding support for nested NavSubMenus #174 (Thanks to ebekker)
- MatCard improvements
- MatTypography improvements
- New NavMenu - new component (Thanks to enkodellc)
- PR: NumericUpDown to preview7. Fix tabindex #161 (Thanks to ctrl-alt-d)
- PR: Outlined #162 (Thanks to ctrl-alt-d)
- Update to .NET Core 3.0 Preview 7
- All components supports @Attributes and Id parameter
- MatDatePicker parameters: Label, Dense, Outlined, Required, Disabled
- PR: Fixed up the helper text functionality in MatTextField. #121 (Thanks to jorgy343)
- PR: MatSelect Updates #124 (Thanks to jorgy343)
- PR: Typo. Mode is hardcoded #128 (Thanks to ctrl-alt-d)
- PR: fix upper cases for linux env #130 (Thanks to ctrl-alt-d)
- PR: Improve Full Width Field Text Padding #131 (Thanks to ctrl-alt-d)
- PR: #89 MatTable Row Hover & Select #135 (Thanks to enkodellc)
- PR: MatTable style updates #112 (Thanks to enkodellc)
- PR: MatListItem Disabled #111 (Thanks to enkodellc)
- PR: Fixed a bug where Table would not re render after data changed. #110 (Thanks to Garderoben)
- Now we have MatBlazor - Documentation and demo website - Client Side Blazor
- Fixed: Docs site looks to show bug for expansion panel #107
- .NET Core 3.0.100-preview6-012264
- MatToast (Thanks to enkodellc)
- MatNumericUpDownField (Thanks to ctrl-alt-d)
- PR: MatTable bug where LoadData would throw exception when using Filter #101 (Thanks to Garderoben)
- Fixed Clicking on Icon in DatePicker doesn't show the calender selection window. #86
- MatHidden
- Material theme configuration #90
- MatAccordion, MatExpansionPanel
- MatTooltip
- ForwardRef concept
- MatFAB - Floating Action Button
- MatThemeProvider (Themes support)
- MatAppBarContainer, MatAppBarContent
- PR: MatNumericUpDownField #78 - early preview (ctrl-alt-d)
- MatMenu fix (added class and style support)
- MatDatePicker (alpha)
- MatTextField ReadOnly
- MatTextField InputClass and InputStyle
- MatButton Type, Name, Value #75
- MatTabGroup and MatTab components
- MatTabBar and MatTabLabel components
- Update to ASP.NET Core 3.0.0-preview5-19227-01
- https://www.matblazor.com working as server-side Blazor on Linux server
- Fix MatAutoComplete
- Minor improvements and changes
- Demo and documentation https://www.matblazor.com working as server-side Blazor
<MatBlazorInstall />
for server-side Blazor is obsolete- For server-side Blazor used EmbeddedBlazorContent
- New github path: https://github.com/SamProf/MatBlazor
- New gitter chat: https://gitter.im/MatBlazor/community
- Fixed Drawer problem
- All components in one namespace MatBlazor (only one using directive)
- PR: Revert back to C# 7.3 #66 (enkodellc)
- Fixed problem with including *.razor files
- PR: #63 MatBlazor Logo / .svg / .ico #65 (enkodellc)
- Now we have Logo (many thanks to enkodellc)
- PR: Prevent *.razor files from being packed #64 (IvanJosipovic)
- Fixed Examples generation
- Update to Blazor 3.0.0-preview4-19216-03
- PR: MatTable Table Filter, get data from API #61 (enkodellc, arivera12)
- PR: Fix Table Navigation Error #60 (enkodellc)
- PR: MatTable Version 1 #58 (enkodellc, arivera12)
- PR: Fixed #50 Autocomplete FullWidth + #52 (sandrohanea)
- PR: MatIconButton Add Functionality, Update Demo #53 (enkodellc)
- PR: Added documentation for autocomplete + Fixed #56 + changed documentation file path to a relative one(instead of absolut) #57 (sandrohanea)
- Creating partial documentation for all components (autogeneration)
- Improved many examples
- Improved homepage, components page design, README.md
- Change of versioning policy is similar to Blazor
- Fixed MatTextBox FullWidth Padding / Icon Fix #43 #51 (enkodellc)
- Fixed Select is showing native arrow? #48 (sandrohanea)
- New component MatAutocomplete (sandrohanea)
- New component MatSnackbar
- New component MatRipple
- New styles Layout Grid
- New component MatDialog
- MatCheckbox add inline label (enkodellc)
- New component MatProgressBar
- New styles Elevation
- License of used packages added to js boundle
- Changed all events to EventCallback
- Show Icons when MatTextField has FullWidth (enkodellc)
- Improved events for MatTextField (sandrohanea + SamProf)
- Added Typography styles
- Added Href parameter to MatListItem component
- MatTextField - fixed label
- MatMenu - first working implementation
- New MatDrawer
- Fix MatAppBar (fixed-adjust div)
- Added Style Parameter for all components
- Added BaseMatComponent Docs
- MatDrawer in progress
- Introduce Razor Components support (MatBlazorInstall component)
- Upgrade Blazor 0.9 complete
- Upgrade to new Material Components
- MatTextField Outlined fixed
- MatRadioGroup and MatRadioButton enhancements
- MatSelect Outlined fixed
- MatSlider Step problem founded
- Fixed main page of the demo project MatDrawer
- MatMenu (prepared for development in next release)
- MatDrawer (prepared for development in next release)
- BlazorFiddle integration fixed
- Upgrade to Blazor 0.9.0 (Part 1)
- TrailingIcon in MatButton
- Added integration with BlazorFiddle.com
- MatIconButton - Href bacame Link
- Upgrade to Blazor 0.7.0
- MatDrawer in progress
For how-to questions and other non-issues, for now you can use issues or you can use .
We'd greatly appreciate any contribution you make. :)
In the near future we plan to maximize the count and features of the components inspired by other frameworks like Angular Material, React Material UI and Vue Material.
- Implementation of base functionality from MDC Web
- Implementation of first versions of more rich components, like Table, AutoComplete, Accordion (Expansion Panel), Calendar, DatePicker and etc.
- Improvement existing component's functionality. Make API near the same as Angular Material (or React, Vue)
- JS-less. Implement components as much as possible without using JS.
This project is licensed under the terms of the MIT license.