= {
`
},
+ nativeTypes: {
+ html: `
+`,
+ ts: `
+private readonly fb = inject(FormBuilder);
+
+componentData = ComponentData;
+isLoading = false;
+
+nativeForm = this.fb.nonNullable.group({
+ name: ['', Validators.required]
+});
+
+nativeSubmitMessage = '';
+
+onNativePlainClick() {
+ this.nativeSubmitMessage = 'Plain button clicked (no form action).';
+}
+
+onNativeSubmit(event: Event) {
+ event.preventDefault();
+ if (this.nativeForm.invalid) {
+ this.nativeSubmitMessage = 'Form is invalid.';
+ return;
+ }
+ this.nativeSubmitMessage = "Form submitted with name: " + this.nativeForm.value.name;
+}
+
+onNativeReset() {
+ this.nativeForm.reset();
+ this.nativeSubmitMessage = '';
+}`
+ },
+
misc: {
html: `
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 @@