From 300f67a2c9c0b991265a55a2ae81e577e0b3dd8f Mon Sep 17 00:00:00 2001 From: Lukas Matta Date: Thu, 21 May 2026 18:18:01 +0200 Subject: [PATCH] feat(button): Add native type --- .../src/app/api-data/cps-button.json | 8 +++++ .../cps-button/cps-button.component.html | 2 +- .../cps-button/cps-button.component.spec.ts | 31 +++++++++++++++++++ .../cps-button/cps-button.component.ts | 6 ++++ 4 files changed, 46 insertions(+), 1 deletion(-) diff --git a/projects/composition/src/app/api-data/cps-button.json b/projects/composition/src/app/api-data/cps-button.json index 90853e0e..ccfd635f 100644 --- a/projects/composition/src/app/api-data/cps-button.json +++ b/projects/composition/src/app/api-data/cps-button.json @@ -37,6 +37,14 @@ "default": "solid", "description": "Type of the button in terms of appearance, it can be 'solid' or 'outlined' or 'borderless'." }, + { + "name": "nativeType", + "optional": false, + "readonly": false, + "type": "'button' | 'submit' | 'reset'", + "default": "button", + "description": "Native HTML button type attribute, it can be 'button', 'submit' or 'reset'." + }, { "name": "label", "optional": false, diff --git a/projects/cps-ui-kit/src/lib/components/cps-button/cps-button.component.html b/projects/cps-ui-kit/src/lib/components/cps-button/cps-button.component.html index 671273a7..bbfb0140 100644 --- a/projects/cps-ui-kit/src/lib/components/cps-button/cps-button.component.html +++ b/projects/cps-ui-kit/src/lib/components/cps-button/cps-button.component.html @@ -1,6 +1,6 @@