Skip to content

setting-components/telephone-component

Contains a component that allows the user to enter a telephone number.

Class Description
TelephoneComponent A component that allows the user to enter a telephone number. It looks like regular text component on desktop but changes keyboard to digits only on mobile. You can add this component using SettingEx.addTelephone. In order to add the styles for the component, use initPluginContext in your plugin’s onload() function. Alternatively, you can copy styles from https://unpkg.com/@mnaoumov/obsidian-lib/dist/styles.css.