Skip to main content

CodeInput

Function CodeInput 

Source
pub fn CodeInput(props: CodeInputProps) -> impl IntoView
Expand description

Code input component with syntax highlighting support

§Required Props

§Optional Props

  • placeholder: impl Into<String>
    • Placeholder text
  • required: bool
    • Whether the field is required
  • disabled: bool
    • Whether the field is disabled
  • class: impl Into<String>
    • CSS classes
  • error: impl Into<String>
    • Error message to display
  • has_error: bool
    • Whether the field has an error
  • _language: impl Into<String>
    • Programming language for syntax highlighting
  • show_line_numbers: bool
    • Whether to show line numbers
  • show_language_selector: bool
    • Whether to show language selector
  • show_fullscreen: bool
    • Whether to show fullscreen toggle
  • min_height: u32
    • Minimum height in pixels
  • max_height: u32
    • Maximum height in pixels