"Must contain at least 9 characters, uppercase and digits",
],
},
};
exportconstDisabledEmpty={
args:{
label:"Describe your job",
disabled: true,
},
};
exportconstDisabledFilled={
args:{
label:"Describe your job",
defaultValue:"John Doe",
disabled: true,
},
};
exportconstEmpty={
args:{
label:"Describe your job",
},
};
exportconstOverflowingText={
args:{
label:"Describe your job",
defaultValue:
"John Dave Mike Smith Doe Junior Senior Yoda Skywalker John Dave Mike Smith Doe Junior Senior Yoda Skywalker John Dave Mike Smith Doe Junior Senior Yoda Skywalker",
},
};
exportconstWithText={
args:{
defaultValue:"Hello world",
label:"Describe your job",
text:"This is a text, you can display anything you want here like warnings, information or errors.",
},
};
exportconstWithTextRight={
args:{
defaultValue:"Hello world",
label:"Describe your job",
rightText:"0/300",
},
};
exportconstWithBothTexts={
args:{
defaultValue:"Hello world",
label:"Describe your job",
text:"This is a text, you can display anything you want here like warnings, information or errors.",
rightText:"0/300",
},
};
exportconstFullWidth={
args:{
defaultValue:"Hello world",
label:"Describe your job",
fullWidth: true,
text:"This is a text, you can display anything you want here like warnings, information or errors.",
rightText:"0/300",
},
};
exportconstCharCounter={
args:{
defaultValue:"CEO",
label:"Describe your job",
text:"This is a text, you can display anything you want here like warnings, information or errors.",
charCounter: true,
charCounterMax: 30,
},
};
exportconstControlled=()=>{
const[value,setValue]=React.useState("I am controlled");
defaultValue="As a developer, my role involves creating, maintaining, and improving software applications and systems. I work with various programming languages and technologies to bring digital solutions to life."
rows={4}
fullWidth={true}
/>
</div>
<divclassName="mt-s">
<TextArea
label="Describe your hobbies"
defaultValue="-Gym
-Running
-Coding"
rows={4}
fullWidth={true}
/>
</div>
<divclassName="mt-s">
<TextArea
label="How could you improve your habits ?"
defaultValue="Wake up earlier in the morning"
text="Be exhaustive"
charCounter={true}
charCounterMax={30}
rows={2}
fullWidth={true}
/>
</div>
<divclassName="mt-s">
<TextArea
label="Tell us about your favorite stack"
disabled={true}
rows={2}
fullWidth={true}
/>
</div>
<divclassName="mt-s">
<TextArea
label="How to code a weather app ?"
defaultValue="Creating a weather app involves several steps, and I'll provide a high-level overview of how you might approach coding one. This example assumes you want to build a web-based weather app using HTML, CSS, and JavaScript, along with data from a weather API. "
state="error"
text="Address not found"
rows={4}
fullWidth={true}
/>
</div>
<divclassName="mt-s">
<TextArea
label="How to setup a database ?"
defaultValue="Setting up a PostgreSQL database involves several steps, from installation to configuration. Below is a step-by-step guide on how to set up a PostgreSQL database on a typical Linux environment. The process is similar on other platforms, with slight variations."