15: Link widgets + CopyClipboard — EmailLink, PhoneLink, UrlLink, CopyClipboard #16

Open
opened 2026-07-05 00:37:28 -06:00 by ppreeper · 0 comments
Owner

Description

Build contact link widgets from PRD-001.

Spec

type EmailLinkProps struct {
    Email  string
    Label  string
    Inline bool
}
type PhoneLinkProps struct {
    Phone string
    Label string
    Icon  bool
}
type UrlLinkProps struct {
    URL    string
    Label  string
    Target string
}
type CopyClipboardProps struct {
    Content     string
    ButtonText  string
    SuccessText string
}
  • EmailLink: <a href="mailto:{email}" class="o_form_uri"><i class="fa fa-envelope"/></a>
  • PhoneLink: <a href="tel:{phone}" class="o_form_uri"><i class="fa fa-phone"/></a>
  • UrlLink: <a href="{url}" class="o_form_uri" target="_blank"><i class="fa fa-globe"/></a>
  • CopyClipboard: <div class="d-grid rounded-2">{field}<CopyButton/></div>

References

PRD-001 EmailLink/PhoneLink/UrlLink/CopyClipboard sections, oddo_widget_subcomponents.md §4.1-4.4

## Description Build contact link widgets from PRD-001. ## Spec ```go type EmailLinkProps struct { Email string Label string Inline bool } type PhoneLinkProps struct { Phone string Label string Icon bool } type UrlLinkProps struct { URL string Label string Target string } type CopyClipboardProps struct { Content string ButtonText string SuccessText string } ``` - EmailLink: `<a href="mailto:{email}" class="o_form_uri"><i class="fa fa-envelope"/></a>` - PhoneLink: `<a href="tel:{phone}" class="o_form_uri"><i class="fa fa-phone"/></a>` - UrlLink: `<a href="{url}" class="o_form_uri" target="_blank"><i class="fa fa-globe"/></a>` - CopyClipboard: `<div class="d-grid rounded-2">{field}<CopyButton/></div>` ## References PRD-001 EmailLink/PhoneLink/UrlLink/CopyClipboard sections, oddo_widget_subcomponents.md §4.1-4.4
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ppreeper/webtemplate#16
No description provided.