60+ daisyUI components with a MudBlazor-compatible API.
` rows. ### `Lines` **Description**: A convenience list of code lines. Each line is automatically wrapped in ``. ### `Prefix` **Description**: The prefix shown before each line when using `MockupCode.Lines`. Defaults to "$". ``` -------------------------------- ### Import DaisyBlazor.Charts Namespace Source: https://github.com/phmatray/daisyblazor/blob/main/docs/charts.md Import the necessary namespace to use the charting components in your Razor files. ```razor @using DaisyBlazor.Charts ``` -------------------------------- ### ChartSeries() Source: https://github.com/phmatray/daisyblazor/blob/main/website/src/content/docs/api/charts/chartseries.md Creates an empty series. This method initializes a new ChartSeries object without any data or name. ```APIDOC ## ChartSeries() ### Description Creates an empty series. ### Method Constructor ### Endpoint N/A (Class Constructor) ### Parameters None ### Response - Initializes an empty ChartSeries object. ``` -------------------------------- ### Size API Source: https://github.com/phmatray/daisyblazor/blob/main/website/src/content/docs/api/index.md API documentation for the Size component. ```APIDOC ## Size API ### Description API documentation for the Size component. ### Endpoint /daisyblazor/api/components/size/ ``` -------------------------------- ### ChartSeries(string, IReadOnlyList, string) Source: https://github.com/phmatray/daisyblazor/blob/main/website/src/content/docs/api/charts/chartseries.md Creates a named series from a sequence of values. This constructor allows for the creation of a ChartSeries with a specified name, a list of double values, and an optional CSS color override. ```APIDOC ## ChartSeries(string name, IReadOnlyList data, string color) ### Description Creates a named series from a sequence of values. ### Method Constructor ### Endpoint N/A (Class Constructor) ### Parameters #### Parameters - **name** (string) - Required - The display name for the series (legend / tooltip label). - **data** (IReadOnlyList ) - Required - Ordered values; index `i` aligns with X label `i`. - **color** (string) - Optional - CSS color override; falls back to the cycling palette when null. ``` -------------------------------- ### Configure Main Stylesheet Source: https://github.com/phmatray/daisyblazor/blob/main/src/DaisyBlazor.Tailwind/README.md Import Tailwind CSS and the DaisyBlazor preset into your main stylesheet. Ensure Tailwind can detect classes used within DaisyBlazor's Razor components by specifying the source path. ```css @import "tailwindcss"; @import "@daisyblazor/tailwind/preset.css"; /* Let Tailwind see the classes used inside DaisyBlazor's .razor components: */ @source "../**/DaisyBlazor.Components/**/*.{razor,cs}"; ``` -------------------------------- ### Alert Properties Source: https://github.com/phmatray/daisyblazor/blob/main/website/src/content/docs/api/components/alert.md Documentation for the configurable properties of the Alert component. ```APIDOC ## Alert Component Properties ### `Icon` **Description:** Explicit icon ligature; overrides the severity default when set. ### `NoIcon` **Description:** Suppress the leading severity icon. ``` -------------------------------- ### Skeleton API Source: https://github.com/phmatray/daisyblazor/blob/main/website/src/content/docs/api/index.md API documentation for the Skeleton component. ```APIDOC ## Skeleton API ### Description API documentation for the Skeleton component. ### Endpoint /daisyblazor/api/components/skeleton/ ``` -------------------------------- ### SnackbarMessage Constructor Source: https://github.com/phmatray/daisyblazor/blob/main/website/src/content/docs/api/components/snackbarmessage.md Initializes a new instance of the SnackbarMessage class. This represents a single snackbar/toast entry tracked by ISnackbar. ```APIDOC ## `SnackbarMessage(Guid, string, Severity, SnackbarOptions)` ### Description Initializes a new instance of the SnackbarMessage class. This represents a single snackbar/toast entry tracked by ISnackbar. ### Parameters #### Path Parameters - **id** (Guid) - Required - The unique identifier for the snackbar message. - **message** (string) - Required - The text content of the snackbar message. - **severity** (Severity) - Required - The severity level of the snackbar message (e.g., Info, Success, Warning, Error). - **options** (SnackbarOptions) - Required - Configuration options for the snackbar message display. ``` -------------------------------- ### Color Theming with DaisyUI Source: https://github.com/phmatray/daisyblazor/blob/main/docs/charts.md Demonstrates how to override individual series or point colors using CSS variables or literals. Colors are derived from ChartPalette, which maps to daisyUI theme tokens. ```csharp new ChartSeries("Errors", data, color: "var(--color-error)"); // a theme token new ChartDataPoint("Other", 12, "#94a3b8"); // a hex literal ``` -------------------------------- ### Tooltip Properties Source: https://github.com/phmatray/daisyblazor/blob/main/website/src/content/docs/api/components/tooltip.md This section details the configurable properties of the Tooltip component. ```APIDOC ## Tooltip Properties ### `Arrow` Accepted for MudBlazor compatibility; daisyUI tooltips always show an arrow. ### `Placement` Tooltip placement relative to the wrapped content. ### `Text` Tooltip text shown on hover. ``` -------------------------------- ### Pushing to Release Branch Source: https://github.com/phmatray/daisyblazor/blob/main/CONTRIBUTING.md Command to fast-forward the release branch to the main branch for triggering a publish workflow. ```bash git push origin main:release ``` -------------------------------- ### TimelinePosition API Source: https://github.com/phmatray/daisyblazor/blob/main/website/src/content/docs/api/index.md API documentation for the TimelinePosition component. ```APIDOC ## TimelinePosition API ### Description API documentation for the TimelinePosition component. ### Endpoint /daisyblazor/api/components/timelineposition/ ``` -------------------------------- ### ShowAsync (string, DialogParameters, DialogOptions) Source: https://github.com/phmatray/daisyblazor/blob/main/website/src/content/docs/api/components/idialogservice.md Shows a dialog component of type T with a specified title, parameters, and options. ```APIDOC ## ShowAsync (string, DialogParameters, DialogOptions) ### Description Shows a dialog component of type T with the given title, parameters, and options. ### Method Signature `ShowAsync (string title, DialogParameters parameters, DialogOptions options)` ### Parameters - **T**: The type of the dialog component to show. - **title** (string): The title of the dialog. - **parameters** (DialogParameters): An object containing parameters to pass to the dialog component. - **options** (DialogOptions): An object containing options for the dialog's appearance and behavior. ``` -------------------------------- ### Tooltip API Source: https://github.com/phmatray/daisyblazor/blob/main/website/src/content/docs/api/index.md API documentation for the Tooltip component. ```APIDOC ## Tooltip API ### Description API documentation for the Tooltip component. ### Endpoint /daisyblazor/api/components/tooltip/ ``` -------------------------------- ### Underline API Source: https://github.com/phmatray/daisyblazor/blob/main/website/src/content/docs/api/index.md API documentation for the Underline component. ```APIDOC ## Underline API ### Description API documentation for the Underline component. ### Endpoint /daisyblazor/api/components/underline/ ``` -------------------------------- ### SnackbarOptions API Source: https://github.com/phmatray/daisyblazor/blob/main/website/src/content/docs/api/index.md API documentation for the SnackbarOptions component. ```APIDOC ## SnackbarOptions API ### Description API documentation for the SnackbarOptions component. ### Endpoint /daisyblazor/api/components/snackbaroptions/ ``` -------------------------------- ### TimelineAlign API Source: https://github.com/phmatray/daisyblazor/blob/main/website/src/content/docs/api/index.md API documentation for the TimelineAlign component. ```APIDOC ## TimelineAlign API ### Description API documentation for the TimelineAlign component. ### Endpoint /daisyblazor/api/components/timelinealign/ ``` -------------------------------- ### Using Material Icons with Button and Icon Components Source: https://github.com/phmatray/daisyblazor/blob/main/docs/mudblazor-migration.md Demonstrates how to use Material Symbols ligatures for icons within Button and Icon components. Ensure the Material Symbols webfont is loaded in your host page. ```razor ``` -------------------------------- ### Navbar API Source: https://github.com/phmatray/daisyblazor/blob/main/website/src/content/docs/api/index.md API documentation for the Navbar component. ```APIDOC ## Navbar API ### Description API documentation for the Navbar component. ### Endpoint /daisyblazor/api/components/navbar/ ``` -------------------------------- ### DataGrid Methods Source: https://github.com/phmatray/daisyblazor/blob/main/website/src/content/docs/api/data/datagrid.md Methods available on the DataGrid component for programmatic control. ```APIDOC ## DataGrid Methods ### `AddColumn(Column )` Registers a column (called by child columns on init). ### `ReloadServerData()` Forces a reload from the server-data source (no-op for client-side data). ### `SetPageAsync(int)` Sets the current page and refreshes the body. ### `SetPageSizeAsync(int)` Changes the page size, resets to the first page, and refreshes. ### `UsePageSizeOptions(int[])` Lets a child pager supply the page-size options without externally setting the parameter. ```