You need to sign in or sign up before continuing.
Commit 20465611 by G

a basic, nice input component

parent c36c8976
import { TextInput } from "react-native";
import type { TextInputProps } from "react-native";
import Box from "./bases/Box";
import Text from "./bases/Text";
type Props = TextInputProps & {
label: string;
};
const Input = ({ label, ...rest }: Props) => {
return (
<Box>
<Text color={"gray"}>{label}</Text>
<Box backgroundColor={"lightGray"} height={50} borderRadius={10} my={"m"} p={"s"}>
<TextInput style={{ height: "100%" }} {...rest} />
</Box>
</Box>
);
};
export default Input;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment