From e275406bc2d8bd625c547a3ee826a5cc4aa05ef3 Mon Sep 17 00:00:00 2001 From: Marvin Klein <32510006+MarvinKlein1508@users.noreply.github.com> Date: Mon, 30 Mar 2026 15:12:17 +0200 Subject: [PATCH] Simple copyable divider examples --- .../Examples/FluentDividerAlignment.razor | 23 +++++++++++ .../Examples/FluentDividerAppeareance.razor | 15 +++++++ .../Examples/FluentDividerDefault.razor | 8 ++++ .../Examples/FluentDividerExamples.razor | 39 ------------------- .../Components/Divider/FluentDivider.md | 12 +++++- 5 files changed, 56 insertions(+), 41 deletions(-) create mode 100644 examples/Demo/FluentUI.Demo.Client/Documentation/Components/Divider/Examples/FluentDividerAlignment.razor create mode 100644 examples/Demo/FluentUI.Demo.Client/Documentation/Components/Divider/Examples/FluentDividerAppeareance.razor create mode 100644 examples/Demo/FluentUI.Demo.Client/Documentation/Components/Divider/Examples/FluentDividerDefault.razor delete mode 100644 examples/Demo/FluentUI.Demo.Client/Documentation/Components/Divider/Examples/FluentDividerExamples.razor diff --git a/examples/Demo/FluentUI.Demo.Client/Documentation/Components/Divider/Examples/FluentDividerAlignment.razor b/examples/Demo/FluentUI.Demo.Client/Documentation/Components/Divider/Examples/FluentDividerAlignment.razor new file mode 100644 index 0000000000..d0c47d3bd2 --- /dev/null +++ b/examples/Demo/FluentUI.Demo.Client/Documentation/Components/Divider/Examples/FluentDividerAlignment.razor @@ -0,0 +1,23 @@ + + Start + + + + Center + + + + End + + + + Start (with inset) + + + + Center (with inset) + + + + End (with inset) + diff --git a/examples/Demo/FluentUI.Demo.Client/Documentation/Components/Divider/Examples/FluentDividerAppeareance.razor b/examples/Demo/FluentUI.Demo.Client/Documentation/Components/Divider/Examples/FluentDividerAppeareance.razor new file mode 100644 index 0000000000..49f0926c8b --- /dev/null +++ b/examples/Demo/FluentUI.Demo.Client/Documentation/Components/Divider/Examples/FluentDividerAppeareance.razor @@ -0,0 +1,15 @@ + + Default + + + + Strong + + + + Brand + + + + Subtle + diff --git a/examples/Demo/FluentUI.Demo.Client/Documentation/Components/Divider/Examples/FluentDividerDefault.razor b/examples/Demo/FluentUI.Demo.Client/Documentation/Components/Divider/Examples/FluentDividerDefault.razor new file mode 100644 index 0000000000..c3bfa3cf9c --- /dev/null +++ b/examples/Demo/FluentUI.Demo.Client/Documentation/Components/Divider/Examples/FluentDividerDefault.razor @@ -0,0 +1,8 @@ + + Horizontal + + + + Vertical + + diff --git a/examples/Demo/FluentUI.Demo.Client/Documentation/Components/Divider/Examples/FluentDividerExamples.razor b/examples/Demo/FluentUI.Demo.Client/Documentation/Components/Divider/Examples/FluentDividerExamples.razor deleted file mode 100644 index 42eabbff74..0000000000 --- a/examples/Demo/FluentUI.Demo.Client/Documentation/Components/Divider/Examples/FluentDividerExamples.razor +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - @content - - -@code -{ - string content = "Fluent divider"; - DividerAppearance appearance = DividerAppearance.Default; - DividerAlignContent alignContent = DividerAlignContent.Center; - bool inset = false; - bool vertical = false; -} diff --git a/examples/Demo/FluentUI.Demo.Client/Documentation/Components/Divider/FluentDivider.md b/examples/Demo/FluentUI.Demo.Client/Documentation/Components/Divider/FluentDivider.md index 8b33ff4677..e440c4958d 100644 --- a/examples/Demo/FluentUI.Demo.Client/Documentation/Components/Divider/FluentDivider.md +++ b/examples/Demo/FluentUI.Demo.Client/Documentation/Components/Divider/FluentDivider.md @@ -7,11 +7,19 @@ icon: DividerShort # Divider The `Divider` component is used to separate content within a container. -The component is a wrapper for the web component. +The component is a wrapper for the `` web component. ## Examples -{{ FluentDividerExamples }} +{{ FluentDividerDefault }} + +## Appeareance + +{{ FluentDividerAppeareance }} + +## Alignment + +{{ FluentDividerAlignment }} ## API FluentDivider