import { Input, Label, Switch, XStack, YStack } from 'tamagui'

export function LabelDemo() {
  return (
    <YStack $maxMd={{ width: '100%' }} minW={300} gap="$4">
      <XStack items="center" gap="$4">
        <Label width={90} htmlFor="name">
          Name
        </Label>
        <Input flex={1} id="name" defaultValue="Nate Wienert" />
      </XStack>

      <XStack items="center" gap="$4">
        <Label width={90} htmlFor="notify">
          Notifications
        </Label>
        <Switch
          activeStyle={{
            backgroundColor: '$color8',
          }}
          id="notify"
        >
          <Switch.Thumb transition="quickest" />
        </Switch>
      </XStack>
    </YStack>
  )
}
