Přejít na hlavní obsah
Hlavička

Textové pole

Umožňuje uživatelům zadávat a upravovat text.
import { TextInput } from "@/ui/input/components/TextInput";

export const MyComponent = () => {
  const handleChange = (text) => {
    console.log("Změněn vstup:", text);
  };

  const handleKeyDown = (event) => {
    console.log("Stisknutá klávesa:", event.key);
  };

  return (
    <TextInput
      className
      label="Uživatelské jméno"
      onChange={handleChange}
      fullWidth={false}
      disableHotkeys={false}
      error="Neplatné uživatelské jméno"
      onKeyDown={handleKeyDown}
      RightIcon={null}
    />
  );
};
},{

Automatická velikost vstupního textu

Textová vstupní komponenta, která automaticky přizpůsobuje svou výšku na základě obsahu.
import { AutosizeTextInput } from "@/ui/input/components/AutosizeTextInput";

export const MyComponent = () => {
  return (
    <AutosizeTextInput
      onValidate={() => console.log("Funkce onValidate spuštěna")}
      minRows={1}
      placeholder="Napište komentář"
      onFocus={() => console.log("Funkce onFocus spuštěna")}
      variant="icon"
      buttonTitle
      value="Úkol: "
    />
  );
};

Textová Oblast

Umožňuje vytvoření víceřádkových textových vstupů.
import { TextArea } from "@/ui/input/components/TextArea";

export const MyComponent = () => {
  return (
    <TextArea
    disabled={false}
    minRows={4}
    onChange={()=>console.log('On change function fired')}
    placeholder="Enter text here"
    value=""
    />
  );
};