Skip to content

obsidian/setting-components/telephone-component

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

ClassDescription
TelephoneComponentA 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://github.com/mnaoumov/obsidian-dev-utils/releases/latest/download/styles.css.