WIP: Initial effective length views.
This commit is contained in:
@@ -15,11 +15,16 @@ public struct SVG: HTML, Sendable {
|
||||
|
||||
extension SVG {
|
||||
public enum Key: Sendable {
|
||||
case circlePlus
|
||||
case close
|
||||
case squarePen
|
||||
|
||||
var svg: String {
|
||||
switch self {
|
||||
case .circlePlus:
|
||||
return """
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-plus-icon lucide-circle-plus"><circle cx="12" cy="12" r="10"/><path d="M8 12h8"/><path d="M12 8v8"/></svg>
|
||||
"""
|
||||
case .close:
|
||||
return """
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-x-icon lucide-x"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>
|
||||
|
||||
Reference in New Issue
Block a user