Skip to content

Type Alias: RBooleanFieldProps

ts
type RBooleanFieldProps = ExtractPublicPropTypes<
  ReturnType<typeof makeRBooleanFieldProps>
>;

Public props interface for the RBooleanField component. Includes all VInput props plus boolean/ternary field-specific options for configurable logic, rendering variants, icon customization, and unified field architecture features.

Example

typescript
// Component props typing
interface MyComponentProps {
  booleanFieldProps: RBooleanFieldProps;
}

// Programmatic prop construction
const fieldProps: RBooleanFieldProps = {
  renderAs: "toggle",
  textForTrue: "Enabled",
  textForFalse: "Disabled",
  choices: [true, false], // Boolean mode
  multiple: false,
  label: "Feature Toggle",
  // ... other VInput props
};