SignIn.EmailForm.Spacing

Layout spacing component for consistent vertical spacing in SignIn forms

  • Stable unknown
  • Release candidate since 1.16.1-rc.3
  • Development since 1.16.1-dev.2111+9796905

Layout spacing component that provides flexible vertical spacing using flex-based layout.

Quick Example

import { SignIn, useAppTheme } from "@ovok/native";
import React from "react";
import { StyleSheet } from "react-native";

// Static styles outside component
const styles = StyleSheet.create({
  customSpacing: {
    backgroundColor: "transparent",
  },
  container: {
    flexGrow: 1,
  },
});

const SpacingExample = () => {
  const theme = useAppTheme();

  return (
    <SignIn.EmailForm
      loginType="Patient"
      tenantCode="your-tenant-code"
      style={styles.container}
    >
      <SignIn.EmailForm.Inputs />
      <SignIn.EmailForm.Spacing
        percentage={2}
        style={[
          styles.customSpacing,
          {
            borderRadius: theme.borderRadius(1),
          },
        ]}
      />
      <SignIn.EmailForm.ForgotPassword />
      <SignIn.EmailForm.Spacing percentage={1} />
      <SignIn.EmailForm.SigninButton />
    </SignIn.EmailForm>
  );
};

export default SpacingExample;

Props

Every prop, with its type and description, is listed in the @ovok/native/auth API reference.

Component Behavior

The component uses flex: percentage to create proportional spacing in flex layouts. Higher percentage values create more space relative to other flex items.

Styling

Theme Variables Used

  • No specific theme variables used by default
  • Inherits styling capabilities from React Native View component

Last updated on

On this page