// AUTO-GENERATED by scripts/generate-wrappers.mjs — do not edit by hand. // Source: packages/core/manifest.json (component "sms-editor"). import type { ElementType, ReactNode } from 'react'; import { SmsEditor as SmsEditorController, type SmsEditorOptions } from '@42/core/sms-editor'; import { C42 } from '../C42'; const DEFAULT_HTML: string | null = "\n
\n \n \n \n \n \n \n \n \n
\n \n
"; export interface SmsEditorProps extends Partial { /** Element/tag rendered as the controller root. Defaults to `"div"`. */ as?: ElementType; className?: string; children?: ReactNode; /** Fired on `smseditor:change` — detail: `{ text, encoding, length, segments, remaining, overLimit }` */ onChange?: (detail: unknown, event: CustomEvent) => void; /** Extra props are forwarded to the rendered `
` element. */ [key: string]: unknown; } export function SmsEditor(props: SmsEditorProps) { const { as, className, children, onChange, value, maxLength, maxSegments, emojis, renderPicker, ...rest } = props; const options = { value, maxLength, maxSegments, emojis, renderPicker } as SmsEditorOptions; return ( {children as ReactNode} ); }