NV NVIDIA Elements Catalog Starters GitHub System Themes Getting Started Getting Started Installation CLI MCP Skills Lint GitHub Integrations Getting Started Angular Bundles CDN Custom Elements Eleventy Golang HTMX + Go Hugo Import Maps Lit Lit Library MCP Apps NextJS Nuxt Pi Preact React SolidJS Sphinx Svelte TypeScript Vue About What’s New Changelog Metrics Support Accessibility Contributions Requests Migration Foundations Overview Typography Iconography Themes Design Tokens Size & Space Objects Interactions Support Status Color Animation Fonts Layers Custom Layout Horizontal Vertical Grid Popovers i18n Visualization View Transitions DESIGN.md Elements Accordion Alert Avatar Badge Breadcrumb Button Button Group Card Chat Message Checkbox Codeblock Color Combobox Copy Button Datagrid Getting Started Integrations Column Action Column Alignment Column Fixed Column width Container Card Display Settings Footer Heatmap Keynav Multi Select Pagination Panel Detail Panel Grid Performance Placeholder Row Action Row Groups Row Sort Scroll Height Single Select Stripe Date Datetime Dialog Divider Dot Drawer Dropdown Dropdown Group Dropzone File Format Bytes Datetime Number Relative Time Truncate Forms Getting Started Validation Actions Control Gauge Icon Icon Button Input Input Group Logo Markdown Markdown CSS Media Controller Pause Button Playback Rate Select Mute Button Seek Button Time Range Volume Range Full-screen Button Menu Month Monaco Input Diff Input Monaco Editor Diff Editor Problems Notification Page Page Header Page Loader Pagination Progressive Filter Chip Progress Bar Progress Ring Password Preferences Input Pulse Radio Range Resize Handle Search Select Skeleton Sort Button Sparkline Star Rating Steps Switch Tabs Tag Textarea Time Toast Toggletip Toolbar Tooltip Tree Viewport Week Patterns Authentication Browse Chat Dashboard Editor Empty States Heatmap Keyboard Shortcut Logging Media Navigation Onboarding Panel Responsive Search Subheader Trend Labs Responsive Layout Viewport Container Patterns Forms API Design Properties & Attributes Slots Registration CustomEvents Stateless Composition Styles Packaging Glossary Logs Internal Guidelines Agent Harness Agent Tooling Agent Ownership Documentation Examples TypeScript Testing Unit Testing Accessibility Testing Lighthouse Testing SSR Testing Visual Testing Troubleshooting Component Creation Internal Examples All Examples

Monaco Input

beta:  2.11.2 Coverage: 100.00% Bundle: 3303.06kb Lighthouse: 99 Axe Core Released: 0.0.0
Overview API

<nve-monaco-input>

Properties

PropertyAttributeDescriptionValues composedLabel none

Text content from labels associated with the control.

string
defaultValue none

The initial value used when the parent form resets.

string
disabled disabled

Determines whether the input prevents editing.

true
false
folding folding

Determines whether the editor supports code folding.

true
false
form none
insertSpaces insert-spaces

Determines whether to insert spaces instead of tabs when pressing the tab key.

true
false
labels none
language language

Defines the programming language for syntax highlighting and validation.

css
go
html
javascript
json
markdown
plaintext
python
shell
sql
typescript
yaml
string
lineNumbers line-numbers

Controls the display of line numbers in the editor.

max max
number
null
maxLength maxlength
number
min min
number
null
minimap minimap

Determines whether to show the minimap (code overview) on the right side of the editor.

true
false
minLength minlength
number
name name

The name submitted with the control value as part of the form data. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/name

string
noValidate novalidate

Determines whether to disable validation of the input.

true
false
pattern pattern

Defines the pattern that text values must match. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/pattern

string
readOnly readonly

Determines whether the editor is in read-only mode.

true
false
required required

Determines whether the input requires a value.

true
false
schema schema

JSON schema for validation when the language equals 'json'. https://json-schema.org/

step step

Defines the value granularity for numeric inputs. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/step

number
null
tabSize tab-size

Determines the number of spaces to use for indentation.

number
type none

The control type.

string
validationMessage none

The validation message shown when the control is invalid. https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/validationMessage

string
validity none
value value

The current value/content of the editor.

string
valueAsNumber none

The current value parsed as a number.

number
valueAsString none

The current value serialized as a string.

string
willValidate none

Indicates whether the control participates in constraint validation. https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/willValidate

true
false
wordWrap word-wrap

Controls how the editor wraps text.

Events

EventDescription canceled

Dispatched when the editor cancels initialization.

change

Dispatched when the user modifies and commits the element's value.

input

Dispatched when the element's value changes as a result of a user action.

invalid

Dispatched when the control is invalid.

ready

Dispatched when the editor finishes initialization and becomes ready.

reset

Dispatched when the control state is reset to its initial value.

syntax-validation-changed

Dispatched when syntax validation state changes.

Methods

MethodSignaturesDescription checkValidity
checkValidity(): boolean

Checks whether the control satisfies its constraints. https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/checkValidity

focus
focus(): unknown
reportValidity
reportValidity(): boolean

Reports whether the control satisfies its constraints. https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/reportValidity

reset
reset(): void

Resets the control value to its initial value.

setCustomValidity
setCustomValidity(message: string): void
updateEditorOptions
updateEditorOptions(options: monaco.editor.IEditorOptions & monaco.editor.IGlobalEditorOptions): unknown

CSS Properties

Css-propertyDescription --background --border --border-radius --min-height --padding