Skip to content

Signature

esignature.Signature displays a signature: a body, e.g. the name or an image of the handwritten signature, framed by a text above and below. It only renders; the signature system provides the infrastructure to capture and verify signatures.

Signature

func view(wnd core.Window) core.View {
    return esignature.Signature().
        TopText("Signed on 12 March 2026").
        Body(Text("Ada Lovelace").Font(Font{Size: L32, Style: ItalicFontStyle})).
        BottomText("Ada Lovelace, Head of Engineering")
}

Constructors

func Signature() TSignature

Signature creates a new, empty TSignature.

Methods

MethodDescription
Body(v core.View) TSignatureBody sets the main body view of the signature.
BottomText(text string) TSignatureBottomText sets the text displayed below the signature body.
Frame(frame ui.Frame) TSignatureFrame sets the frame of the signature container.
TopText(text string) TSignatureTopText sets the text displayed above the signature body.

Related