MASA Blazor Documentation
repository·main·Indexed 23 days ago
https://github.com/masastack/masa.blazorA comprehensive Material Design component library for Blazor applications. It provides pre-built UI components for layouts, frames, loading states, and global exception handling, with deep .NET integrations for URL linkages, breadcrumbs, navigation, advanced search, and i18n. The library includes specialized components such as the Splitter for resizable layouts and MTemplateTable for GraphQL-driven data rendering.
What's inside MASA Blazor
- MASA Blazor is a standard basic component library for Blazor based on Material Design specifications. It provides preset components for common scenarios such as layouts, frames, loading states, and global exception handling. The library aims to reduce development cycles and improve efficiency by offering modular, responsive, and high-performance components. It includes deep integrations for .NET features like URL linkages, breadcrumbs, navigation, advanced search, and i18n.
Overview of the Splitter component
mainTheSplittercomponent in MASA Blazor is inspired bysplitpanes. It allows users to create resizable layouts by dividing a container into multiple panes that can be adjusted by dragging handles between them.What is MASA Blazor?
mainMASA Blazor is a Blazor component library that follows the Material Design design specification. It provides pre-built components for standard scenarios such as layouts, dialogs, loading states, and global exception handling.
Key characteristics include:
- Modular and Responsive: Components are designed to be highly performant and adaptable to different screen sizes.
- Material Design Compliance: Every component is meticulously designed to adhere to Material Design standards.
- Enterprise Ready: Maintained by a professional full-time technical team, offering enterprise-level support and regular updates.
- MASA Blazor Pro: A specialized version that provides a complete set of Web solutions and preset layouts for common real-world scenarios to shorten development cycles.
Use MDataTable for displaying tabular data
mainTheMDataTablecomponent is the primary component for rendering tabular data. By default, it renders data as simple rows. It supports advanced features like sorting, searching, pagination, content-editing, and row selection.Use the MDataTable component
mainTheMDataTablecomponent is used to display tabular data. It supports features such as sorting, searching, pagination, content editing, and row selection. By default, it renders data as simple rows based on the provided headers and items.Use the Gridstack component
mainGridstack is a Blazor wrapper for gridstack.js. It allows you to create interactive, draggable, and resizable grid layouts within your Blazor application.Use MAutocomplete for autocomplete functionality
mainThe
MAutocompletecomponent extendsMSelectby adding item filtering capabilities. It is designed to handle both large datasets and dynamic data fetched from APIs.Important Configuration Rules:
- Object Binding: When using an
Objectas theItemsproperty, you must useItemTextandItemValueto map the object properties to the display text and underlying value. These default toTextandValuebut can be customized. - Menu Styling: The
Autoproperty withinMenuPropsonly supports the default input style. - Browser Autocomplete: Browser-level autocomplete is disabled by default, though behavior may vary by browser.
- Object Binding: When using an
Use the MSheet component
mainTheMSheetcomponent serves as the foundational 'paper' element for many other MASA Blazor components likeMCardandMToolbar. It is used to implement Material Design concepts such as elevation (shadows) and surface shapes. You can use it to create basic containers that support properties likeRounded,Shaped, andElevationto control the visual appearance of the surface.Explore MASA Blazor components
mainMASA Blazor provides a collection of interactive building blocks designed for creating user interfaces. You can view the full catalog of available components using the<all-components></all-components>component within the documentation site.Use MTextField for user input
mainTheMTextFieldcomponent is used to collect user-provided information. It supports various visual styles likeOutlined,Filled, andSolo, and can be customized with icons, labels, hints, and validation rules.Use MTextField for text input
mainTheMTextFieldcomponent is used to collect user information. It supports various visual styles including outlined, filled, and solo modes, and can be customized with icons, labels, hints, and validation rules.Use the Markdown Parser component
mainThe Markdown Parser is a wrapper around
markdown-it(v13.0.1). It includes several built-in plugins:markdown-it-anchor: Configure anchor styles viaAnchorOptions.markdown-it-attrs: Add classes, identifiers, and attributes using{.class #identifier attr=value}syntax.markdown-it-container: Create custom block-level containers.markdown-it-front-matter: Parses YAML Front Matter.markdown-it-header-sections: Groups headings into sections (requires theHeaderSectionsproperty to be enabled).markdown-it-todo: Renders[ ]and[x]as checkboxes.
It also supports syntax highlighting via prism or highlightjs (refer to the
MSyntaxHighlightcomponent).