From 6156a42a0ef7064639f1dba69ee65cd848772df3 Mon Sep 17 00:00:00 2001 From: Markus Thielker Date: Mon, 20 Jan 2025 22:50:12 +0100 Subject: [PATCH] PWD-1: Add button preview --- password/ui/components/PwdButton.swift | 30 ++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/password/ui/components/PwdButton.swift b/password/ui/components/PwdButton.swift index 7c2db48..9abe8e6 100644 --- a/password/ui/components/PwdButton.swift +++ b/password/ui/components/PwdButton.swift @@ -97,3 +97,33 @@ enum ButtonSize { } } } + +#Preview { + VStack { + + PwdButton( + label: Text("Click me!"), + variant: .primary, + action: {} + ) + + PwdButton( + label: Text("Click me!"), + variant: .secondary, + action: {} + ) + + PwdButton( + label: Text("Click me!"), + variant: .outline, + action: {} + ) + + PwdButton( + label: Text("Click me!"), + variant: .ghost, + action: {} + ) + + }.padding() +}