mirror of
https://github.com/khairul169/vaulterm.git
synced 2026-09-15 17:03:30 +07:00
feat: add auth, hosts, & keychains ownership
This commit is contained in:
@@ -4,11 +4,21 @@ import { Label, Text, View, XStack } from "tamagui";
|
||||
type FormFieldProps = ComponentPropsWithoutRef<typeof XStack> & {
|
||||
label?: string;
|
||||
htmlFor?: string;
|
||||
vertical?: boolean;
|
||||
};
|
||||
|
||||
const FormField = ({ label, htmlFor, ...props }: FormFieldProps) => {
|
||||
const FormField = ({
|
||||
label,
|
||||
htmlFor,
|
||||
vertical = false,
|
||||
...props
|
||||
}: FormFieldProps) => {
|
||||
return (
|
||||
<XStack alignItems="flex-start" {...props}>
|
||||
<XStack
|
||||
flexDirection={vertical ? "column" : "row"}
|
||||
alignItems={vertical ? "stretch" : "flex-start"}
|
||||
{...props}
|
||||
>
|
||||
<Label htmlFor={htmlFor} w={120} $xs={{ w: 100 }}>
|
||||
{label}
|
||||
</Label>
|
||||
|
||||
Reference in New Issue
Block a user