From f80202b203a1ce37f0ff93022a7ef86f7863aa78 Mon Sep 17 00:00:00 2001 From: Kristen Pol <22321-kepol@users.noreply.drupalcode.org> Date: Tue, 6 Aug 2024 16:57:34 +0000 Subject: [PATCH] Resolve #3466114 "Convert starshot button" --- .../01-atoms/button/button.component.yml | 104 ++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 starshot_demo/components/01-atoms/button/button.component.yml diff --git a/starshot_demo/components/01-atoms/button/button.component.yml b/starshot_demo/components/01-atoms/button/button.component.yml new file mode 100644 index 00000000..eaaa625f --- /dev/null +++ b/starshot_demo/components/01-atoms/button/button.component.yml @@ -0,0 +1,104 @@ +name: Button + +status: experimental + +group: Atoms + +props: + + type: object + + required: + - text + + properties: + + theme: + type: string + title: Theme + description: 'Theme: light, dark.' + default: light + enum: + - light + - dark + + kind: + type: string + title: Button kind + description: 'Button kind: submit, reset, button, link.' + default: button + enum: + - submit + - reset + - button + - link + + type: + type: string + title: Button type + description: 'Button type: primary, secondary, tertiary.' + default: null + enum: + - primary + - secondary + - tertiary + + size: + type: string + title: Button size + description: 'Button size: large, regular, small.' + default: regular + enum: + - large + - regular + - small + + icon: + type: string + title: Icon + description: Icon name. + + icon_placement: + type: string + title: Icon placement + description: 'Icon position: before, after' + default: after + enum: + - before + - after + + text: + type: string + title: Button text + description: Button text. + + url: + type: string + title: Url + description: URL for the link button. + + allow_html: + type: boolean + title: Allow HTML in text. + + is_new_window: + type: boolean + title: Open in a new window or not. + + is_external: + type: boolean + title: If link is external or not. + + is_disabled: + type: boolean + title: Disabled or not. + + attributes: + type: string + title: Attributes + description: Additional attributes. + + modifier_class: + type: string + title: Modifier class + description: Additional classes. -- GitLab