Generates a login form for the user to sign in.
()
| 3 | |
| 4 | @tool |
| 5 | def generate_form() -> str: |
| 6 | """ |
| 7 | Generates a login form for the user to sign in. |
| 8 | """ |
| 9 | components = [ |
| 10 | { |
| 11 | "id": "root", |
| 12 | "component": { |
| 13 | "Card": { |
| 14 | "child": "main-column" |
| 15 | } |
| 16 | } |
| 17 | }, |
| 18 | { |
| 19 | "id": "main-column", |
| 20 | "component": { |
| 21 | "Column": { |
| 22 | "children": { |
| 23 | "explicitList": [ |
| 24 | "header", |
| 25 | "email-field", |
| 26 | "password-field", |
| 27 | "login-btn", |
| 28 | "divider", |
| 29 | "signup-text" |
| 30 | ] |
| 31 | }, |
| 32 | "gap": "medium" |
| 33 | } |
| 34 | } |
| 35 | }, |
| 36 | { |
| 37 | "id": "header", |
| 38 | "component": { |
| 39 | "Column": { |
| 40 | "children": { |
| 41 | "explicitList": [ |
| 42 | "title", |
| 43 | "subtitle" |
| 44 | ] |
| 45 | }, |
| 46 | "alignment": "center" |
| 47 | } |
| 48 | } |
| 49 | }, |
| 50 | { |
| 51 | "id": "title", |
| 52 | "component": { |
| 53 | "Text": { |
| 54 | "text": { |
| 55 | "literalString": "Welcome back" |
| 56 | }, |
| 57 | "usageHint": "h2" |
| 58 | } |
| 59 | } |
| 60 | }, |
| 61 | { |
| 62 | "id": "subtitle", |
nothing calls this directly
no outgoing calls
no test coverage detected