From 00f7fdf39c918323eafce35b71e1b233d9674e7d Mon Sep 17 00:00:00 2001 From: Pavel Klibani Date: Tue, 26 Sep 2023 09:37:11 +0200 Subject: [PATCH] Docs(web): ButtonLink demo #DS-979 - Added demo and readme for ButtonLink in web package --- .../src/scss/components/ButtonLink/README.md | 65 ++++++++++++++++ .../src/scss/components/ButtonLink/index.html | 76 +++++++++++++++++++ 2 files changed, 141 insertions(+) create mode 100644 packages/web/src/scss/components/ButtonLink/README.md create mode 100644 packages/web/src/scss/components/ButtonLink/index.html diff --git a/packages/web/src/scss/components/ButtonLink/README.md b/packages/web/src/scss/components/ButtonLink/README.md new file mode 100644 index 0000000000..6a372b13ce --- /dev/null +++ b/packages/web/src/scss/components/ButtonLink/README.md @@ -0,0 +1,65 @@ +# ButtonLink + +Variants: + +```html +Primary Button +Secondary Button +Tertiary Button +Inverted button +Success button +Informative button +Warning button +Danger button +``` + +Block-level Button: + +```html +Primary block-level Button +``` + +Disabling a Button: + +```html +Disabled Button +Disabled Button +``` + +Loading Button: +⚠️ In CSS we depend on the correct placement of the Spinner Icon. It should be the last child of the Button. + +```html + + Button primary + + + + + Menu + + + + Menu + + + +``` + +Sizes: + +```html +Small Button +Medium Button +Large Button +``` diff --git a/packages/web/src/scss/components/ButtonLink/index.html b/packages/web/src/scss/components/ButtonLink/index.html new file mode 100644 index 0000000000..dc78010f0c --- /dev/null +++ b/packages/web/src/scss/components/ButtonLink/index.html @@ -0,0 +1,76 @@ +{{#> layout/plain }} {{setVar "colors" "primary" "secondary" "tertiary" "inverted" "success" "informative" "warning" +"danger" }} {{setVar "sizes" "small" "medium" "large" }} + +
+

Default

+
+ +
+ {{#each @root.sizes as |size|}} +
+

Size {{size}}

+
+ {{#each @root.colors as |color|}} + + {{/each}} +
+
+ {{/each}} +
+ +
+
+ +
+

Disabled

+
+ +
+ {{#each @root.sizes as |size|}} +
+

Size {{size}}

+
+ {{#each @root.colors as |color|}} + + {{/each}} +
+
+ {{/each}} +
+ +
+
+ +{{/layout/plain }}