pub fn CodeInput(props: CodeInputProps) -> impl IntoViewExpand description
Code input component with syntax highlighting support
§Required Props
- name:
impl Into<String>- Field name for the input
- value:
impl Into<Signal<FieldValue>>- Current value of the field
- _on_change:
impl Into<Callback<FieldValue>>- Callback when the value changes
§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