PWD-1: Add button preview
This commit is contained in:
parent
bcf1d25b63
commit
6156a42a0e
1 changed files with 30 additions and 0 deletions
|
@ -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()
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue