import { RtFrame } from '@dpa/react-frame-intro';
import { RtFormFieldText } from '@dpa/react-form-field-text';
import { useState } from 'react';
import { SparkTypographyIcon } from '@dpa/react-typography-icons';
import { RtSymbolAction } from '@dpa/react-symbol-action';
import { TestDetailsButton } from './test-details-button';
import { RtGrid } from '@dpa/react-grid';
function FormFieldBlock() {
const [text, setText] = useState('hello');
function onChange(e: any) {
setText(e.value);
}
return (
slot}
trailingSlot={slot
}
trailingAction={RtSymbolAction.Info}
trailingActionSymbol="info-circle-fill"
prefix="Prefix"
suffix="Suffix"
placeholder="Placeholder"
ui="normal"
size="md"
value={text}
clearable="persistent"
use="neutral"
modifier="mono"
onChange={(e) => setText(e.value)}
counter
maxLength={10}
trailingActionTooltipHint="Hello ?))"
/>
slot}
trailingSlot={slot
}
trailingAction={RtSymbolAction.Info}
trailingActionSymbol="info-circle-fill"
prefix="Prefix"
suffix="Suffix"
placeholder="Placeholder"
ui="space"
size="lg"
clearable="persistent"
value={text}
use="neutral"
onChange={(e) => setText(e.value)}
counter
maxLength={999}
/>
slot}
trailingSlot={slot
}
trailingAction={RtSymbolAction.Info}
trailingActionSymbol="info-circle-fill"
suffix="Suffix"
prefix="Prefix"
placeholder="Placeholder"
ui="ambulant-label"
size="lg"
value={text}
phDisplay="persistent"
clearable="persistent"
use="neutral"
onChange={(e) => setText(e.value)}
counter
maxLength={999}
/>
slot}
trailingSlot={
}
trailingAction={RtSymbolAction.Info}
trailingActionSymbol="info-circle-fill"
placeholder="Placeholder"
ui="ambulant-label"
size="lg"
value={text}
phDisplay="hidden"
clearable="persistent"
use="neutral"
onChange={(e) => setText(e.value)}
counter
maxLength={999}
detailsSlot={}
isDetailsSlotGridChild
/>
slot}
trailingSlot={slot
}
trailingAction={RtSymbolAction.Info}
trailingActionSymbol="info-circle-fill"
placeholder="Placeholder 123 123 123 123"
ui="normal"
required
size="md"
value={text}
clearable="persistent"
ariaLabel="hello"
use="error"
onChange={onChange}
counter
maxLength={999}
hint="Hint"
width="250px"
/>
);
}
export function FormFieldTextPage() {
return (
);
}