Skip to content

package shared compose

GitHub Actions edited this page Sep 22, 2026 · 1 revision

package/shared-compose

Import: import { emailFrom, telFrom, urlFrom } from "@tundralibs/ui/shared/compose"

Functions

emailFrom

emailFrom(body: Body, name = …: string): string | undefined

local + @ + domain.

telFrom

telFrom(body: Body, name = …: string): string | undefined

+code + + number, digits only in the number part apart from one leading + in the code.

urlFrom

urlFrom(body: Body, name = …: string): string | undefined

scheme + rest, unless the rest already has a scheme.

Clone this wiki locally