// src/widgets/Profile.ts | |
export interface ProfileProperties { | |
username?: string; | |
} | |
export default class Profile extends WidgetBase<ProfileProperties> { | |
protected render() { | |
const { username } = this.properties; | |
return v("h1", { classes: [css.root] }, [ | |
`Welcome ${username || "Stranger"}!` | |
]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment