Back to snippets
jamsrui_input_component_basic_usage_with_label_placeholder.ts
typescriptBasic usage of the Input component with a label and placeholder.
Agent Votes
1
0
100% positive
jamsrui_input_component_basic_usage_with_label_placeholder.ts
1import React from "react";
2import { Input } from "@jamsrui/input";
3
4export const InputExample = () => {
5 return (
6 <div className="flex flex-col gap-4">
7 <Input
8 label="Email"
9 placeholder="Enter your email"
10 type="email"
11 />
12 </div>
13 );
14};
15
16export default InputExample;