{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "field",
  "type": "registry:ui",
  "title": "Field",
  "description": "Labeled form rows, choice groups, and disabled sets.",
  "categories": [
    "forms"
  ],
  "dependencies": [
    "@base-ui/react@1.9.0",
    "@hugeicons/core-free-icons@4.4.0",
    "@hugeicons/react@1.1.10"
  ],
  "registryDependencies": [
    "https://sprout.tulipfarm.ai/r/sprout-base.json",
    "https://sprout.tulipfarm.ai/r/badge.json",
    "https://sprout.tulipfarm.ai/r/radio-group.json",
    "https://sprout.tulipfarm.ai/r/separator.json"
  ],
  "files": [
    {
      "path": "registry/sprout/components/ui/field.tsx",
      "type": "registry:ui",
      "target": "components/ui/field.tsx",
      "content": "'use client';\n\nimport { createContext, useContext, useId, type AriaAttributes, type ReactElement, type ReactNode } from 'react';\nimport { Checkbox as BaseCheckbox } from '@base-ui/react/checkbox';\nimport { CheckIcon } from '@/lib/sprout/icons/check-icon';\nimport { cn } from '@/lib/sprout/classes';\nimport { Badge } from '@/components/ui/badge';\nimport { RadioGroup, RadioGroupItem } from '@/components/ui/radio-group';\nimport { Separator, type SeparatorLabelProps } from '@/components/ui/separator';\n\nexport const fieldLabelVisibilityNames = ['visible', 'screen-reader'] as const;\nexport const choiceGroupTypeNames = ['checkbox', 'radio'] as const;\nexport const choiceGroupLayoutNames = ['list', 'columns'] as const;\nexport const checkboxFieldVariantNames = ['default', 'neutral'] as const;\n\nexport type FieldLabelVisibility = (typeof fieldLabelVisibilityNames)[number];\nexport type ChoiceGroupType = (typeof choiceGroupTypeNames)[number];\nexport type ChoiceGroupLayout = (typeof choiceGroupLayoutNames)[number];\nexport type CheckboxFieldVariant = (typeof checkboxFieldVariantNames)[number];\n\nexport type Requirement = { required: true; optional?: never } | { optional: true; required?: never };\n\nexport const FieldsDisabled = createContext(false);\n\ninterface FieldControl {\n  id: string;\n  describedBy: string | undefined;\n  invalid: boolean;\n  required: boolean;\n  disabled: boolean;\n}\n\nconst FieldControlContext = createContext<FieldControl | null>(null);\n\nexport interface FieldControlProps {\n  id?: string | undefined;\n  disabled?: boolean | undefined;\n  'aria-describedby'?: string | undefined;\n  'aria-invalid'?: AriaAttributes['aria-invalid'];\n  'aria-required'?: AriaAttributes['aria-required'];\n  'aria-label'?: string | undefined;\n  'aria-labelledby'?: string | undefined;\n}\n\nexport function useFieldControl<P extends FieldControlProps>(props: P): P {\n  const field = useContext(FieldControlContext);\n  if (!field || props['aria-label'] !== undefined || props['aria-labelledby'] !== undefined) return props;\n  return {\n    ...props,\n    id: field.id,\n    disabled: field.disabled || props.disabled,\n    'aria-describedby': ids(field.describedBy, props['aria-describedby']),\n    'aria-invalid': field.invalid || props['aria-invalid'],\n    'aria-required': field.required || props['aria-required'],\n  };\n}\n\nfunction ids(...values: (string | false | undefined)[]) {\n  const tokens = values.flatMap(value => (value ? value.split(/\\s+/) : []));\n  return [...new Set(tokens.filter(Boolean))].join(' ') || undefined;\n}\n\nfunction RequirementMarker({ required, id }: { required: boolean; id: string | undefined }) {\n  if (!required) return null;\n  return (\n    <>\n      <span aria-hidden data-slot=\"requirement\" className=\"sprout-field-requirement\">\n        *\n      </span>\n      {id && (\n        <span id={id} className=\"sprout-field-sr-only\">\n          Required\n        </span>\n      )}\n    </>\n  );\n}\n\nexport type FieldProps = Requirement & {\n  label: string;\n  labelVisibility?: FieldLabelVisibility | undefined;\n  helper?: ReactNode;\n  error?: string | undefined;\n  counter?: string | undefined;\n  id?: string | undefined;\n  disabled?: boolean | undefined;\n  className?: string | undefined;\n  children: ReactElement;\n};\n\nexport function Field({\n  label,\n  labelVisibility = 'visible',\n  helper,\n  error,\n  counter,\n  id,\n  disabled,\n  required,\n  className,\n  children,\n}: FieldProps) {\n  const generatedId = useId();\n  const controlId = id ?? generatedId;\n  const locked = useContext(FieldsDisabled) || disabled === true;\n  const lineId = error ? `${controlId}-error` : helper ? `${controlId}-helper` : undefined;\n  const counterId = counter ? `${controlId}-counter` : undefined;\n  const control: FieldControl = {\n    id: controlId,\n    describedBy: ids(lineId, counterId),\n    invalid: Boolean(error),\n    required: required === true,\n    disabled: locked,\n  };\n  return (\n    <div\n      data-slot=\"field\"\n      data-disabled={locked || undefined}\n      data-invalid={error ? true : undefined}\n      className={cn('sprout-field', className)}\n    >\n      <div\n        data-slot=\"field-header\"\n        className={labelVisibility === 'screen-reader' ? 'sprout-field-sr-only' : 'sprout-field-header'}\n      >\n        <div className=\"sprout-field-heading\">\n          <label data-slot=\"label\" htmlFor={controlId} className=\"sprout-field-label\">\n            {label}\n          </label>\n          <RequirementMarker required={required === true} id={undefined} />\n        </div>\n        {counter && (\n          <p id={counterId} data-slot=\"field-counter\" className=\"sprout-field-counter\">\n            {counter}\n          </p>\n        )}\n      </div>\n      <FieldControlContext value={control}>{children}</FieldControlContext>\n      {error ? (\n        <p id={lineId} data-slot=\"field-error\" className=\"sprout-field-message sprout-field-error\">\n          {error}\n        </p>\n      ) : helper ? (\n        <p id={lineId} data-slot=\"field-helper\" className=\"sprout-field-message\">\n          {helper}\n        </p>\n      ) : null}\n    </div>\n  );\n}\n\nfunction FieldCheckbox({\n  variant = 'default',\n  className,\n  ...props\n}: BaseCheckbox.Root.Props & { variant?: CheckboxFieldVariant | undefined }) {\n  return (\n    <BaseCheckbox.Root\n      data-slot=\"checkbox\"\n      data-variant={variant}\n      className={cn('sprout-field-checkbox', className)}\n      {...props}\n    >\n      <BaseCheckbox.Indicator data-slot=\"checkbox-indicator\" className=\"sprout-field-checkbox-indicator\">\n        <CheckIcon aria-hidden=\"true\" />\n      </BaseCheckbox.Indicator>\n    </BaseCheckbox.Root>\n  );\n}\n\nexport interface ChoiceOption<V extends string> {\n  value: V;\n  label: string;\n  description?: string | undefined;\n  disabled?: boolean | undefined;\n}\n\nexport type ChoiceGroupProps<V extends string> = Requirement & {\n  legend: string;\n  legendVisibility?: FieldLabelVisibility | undefined;\n  helper?: ReactNode;\n  error?: string | undefined;\n  warning?: string | undefined;\n  options: readonly ChoiceOption<V>[];\n  layout?: ChoiceGroupLayout | undefined;\n  disabled?: boolean | undefined;\n  id?: string | undefined;\n  className?: string | undefined;\n} & (\n    | {\n        type: 'checkbox';\n        value: readonly V[];\n        onValueChange: (value: V[]) => void;\n      }\n    | { type: 'radio'; value: V; onValueChange: (value: V) => void }\n  );\n\nexport function ChoiceGroup<V extends string>(props: ChoiceGroupProps<V>) {\n  const {\n    legend,\n    legendVisibility = 'visible',\n    helper,\n    error,\n    warning,\n    options,\n    layout = 'list',\n    required,\n    className,\n  } = props;\n  const generatedId = useId();\n  const groupId = props.id ?? generatedId;\n  const locked = useContext(FieldsDisabled) || props.disabled === true;\n  const radio = props.type === 'radio';\n  const legendId = `${groupId}-legend`;\n  const errorId = error ? `${groupId}-error` : undefined;\n  const helperId = helper ? `${groupId}-helper` : undefined;\n  const markerId = !radio && required ? `${groupId}-requirement` : undefined;\n  const labelling = {\n    id: groupId,\n    'aria-labelledby': legendId,\n    'aria-describedby': ids(errorId, helperId, markerId),\n  };\n\n  const rows = options.map((option, index) => {\n    const checked = props.type === 'checkbox' ? props.value.includes(option.value) : props.value === option.value;\n    const disabled = locked || option.disabled === true;\n    const descriptionId = option.description ? `${groupId}-option-${index}-description` : undefined;\n    let control: ReactElement;\n    if (props.type === 'checkbox') {\n      const { value, onValueChange } = props;\n      control = (\n        <FieldCheckbox\n          checked={checked}\n          disabled={disabled}\n          aria-describedby={descriptionId}\n          aria-invalid={error ? true : undefined}\n          onCheckedChange={next =>\n            onValueChange(next ? [...value, option.value] : value.filter(item => item !== option.value))\n          }\n        />\n      );\n    } else {\n      control = (\n        <RadioGroupItem\n          className=\"sprout-field-radio\"\n          value={option.value}\n          disabled={disabled}\n          aria-describedby={descriptionId}\n        />\n      );\n    }\n    return (\n      <div\n        key={option.value}\n        data-slot=\"choice-option\"\n        data-checked={checked || undefined}\n        data-disabled={disabled || undefined}\n        className=\"sprout-choice-option\"\n      >\n        <label className=\"sprout-choice-option-label\">\n          {control}\n          <span className=\"sprout-choice-option-text\">{option.label}</span>\n        </label>\n        {option.description && (\n          <p id={descriptionId} className=\"sprout-choice-option-description\">\n            {option.description}\n          </p>\n        )}\n      </div>\n    );\n  });\n\n  const content = (\n    <>\n      <div className={legendVisibility === 'screen-reader' ? 'sprout-field-sr-only' : 'sprout-choice-group-legend'}>\n        <p id={legendId} className=\"sprout-choice-group-legend-text\">\n          {legend}\n        </p>\n        <RequirementMarker required={required === true} id={markerId} />\n        {warning && <Badge variant=\"warning\">{warning}</Badge>}\n      </div>\n      {helper && (\n        <p id={helperId} className=\"sprout-field-message\">\n          {helper}\n        </p>\n      )}\n      <div data-slot=\"choice-group-options\" data-layout={layout} className=\"sprout-choice-group-options\">\n        {rows}\n      </div>\n      {error && (\n        <p id={errorId} className=\"sprout-field-message sprout-field-error\">\n          {error}\n        </p>\n      )}\n    </>\n  );\n\n  const classes = cn('sprout-choice-group', className);\n  if (props.type === 'radio') {\n    const { onValueChange } = props;\n    return (\n      <RadioGroup\n        data-slot=\"choice-group\"\n        data-type=\"radio\"\n        className={classes}\n        value={props.value}\n        disabled={locked}\n        aria-required={required || undefined}\n        aria-invalid={error ? true : undefined}\n        {...labelling}\n        onValueChange={next => {\n          const option = options.find(item => item.value === next);\n          if (option) onValueChange(option.value);\n        }}\n      >\n        {content}\n      </RadioGroup>\n    );\n  }\n  return (\n    <div\n      role=\"group\"\n      data-slot=\"choice-group\"\n      data-type=\"checkbox\"\n      data-disabled={locked || undefined}\n      className={classes}\n      {...labelling}\n    >\n      {content}\n    </div>\n  );\n}\n\nexport interface CheckboxFieldProps {\n  label: string;\n  helper?: ReactNode;\n  error?: string | undefined;\n  checked: boolean;\n  onCheckedChange: (checked: boolean) => void;\n  disabled?: boolean | undefined;\n  variant?: CheckboxFieldVariant | undefined;\n  id?: string | undefined;\n  className?: string | undefined;\n}\n\nexport function CheckboxField({\n  label,\n  helper,\n  error,\n  checked,\n  onCheckedChange,\n  disabled,\n  id,\n  variant,\n  className,\n}: CheckboxFieldProps) {\n  const generatedId = useId();\n  const fieldId = id ?? generatedId;\n  const locked = useContext(FieldsDisabled) || disabled === true;\n  const lineId = error ? `${fieldId}-error` : helper ? `${fieldId}-helper` : undefined;\n  return (\n    <div\n      id={fieldId}\n      data-slot=\"checkbox-field\"\n      data-disabled={locked || undefined}\n      className={cn('sprout-checkbox-field', className)}\n    >\n      <label className=\"sprout-checkbox-field-label\">\n        <FieldCheckbox\n          variant={variant}\n          checked={checked}\n          disabled={locked}\n          aria-describedby={lineId}\n          aria-invalid={error ? true : undefined}\n          onCheckedChange={next => onCheckedChange(next)}\n        />\n        <span className=\"sprout-checkbox-field-text\">{label}</span>\n      </label>\n      {error ? (\n        <p id={lineId} className=\"sprout-field-message sprout-field-error sprout-checkbox-field-message\">\n          {error}\n        </p>\n      ) : helper ? (\n        <p id={lineId} className=\"sprout-field-message sprout-checkbox-field-message\">\n          {helper}\n        </p>\n      ) : null}\n    </div>\n  );\n}\n\nexport type FieldSeparatorProps = Omit<SeparatorLabelProps, 'variant' | 'children'> & {\n  children?: SeparatorLabelProps['children'];\n};\n\nexport function FieldSeparator({ className, children = null, ...props }: FieldSeparatorProps) {\n  return (\n    <Separator data-slot=\"field-separator\" className={cn('sprout-field-separator', className)} {...props}>\n      {children}\n    </Separator>\n  );\n}\n"
    },
    {
      "path": "registry/sprout/lib/sprout/icons/check-icon.tsx",
      "type": "registry:lib",
      "target": "lib/sprout/icons/check-icon.tsx",
      "content": "import { Tick02Icon as glyph } from '@hugeicons/core-free-icons';\nimport { createIcon } from '@/lib/sprout/icons/create-icon';\n\nexport const CheckIcon = /* @__PURE__ */ createIcon(glyph, 'CheckIcon');\n"
    },
    {
      "path": "registry/sprout/lib/sprout/icons/create-icon.tsx",
      "type": "registry:lib",
      "target": "lib/sprout/icons/create-icon.tsx",
      "content": "import { HugeiconsIcon, type IconSvgElement } from '@hugeicons/react';\nimport type { ReactElement, Ref, SVGProps } from 'react';\n\nexport const iconSizes = {\n  xs: 12,\n  sm: 14,\n  md: 16,\n  lg: 18,\n  xl: 20,\n  '2xl': 24,\n} as const;\n\nexport type IconSize = keyof typeof iconSizes;\n\nexport const iconStrokeWidth = 1.5;\n\nexport type IconProps = Omit<SVGProps<SVGSVGElement>, 'ref'> & {\n  size?: IconSize | number;\n  ref?: Ref<SVGSVGElement>;\n};\n\nexport type IconComponent = (props: IconProps) => ReactElement;\n\nexport function createIcon(glyph: IconSvgElement, name: string): IconComponent {\n  const Icon = ({ size = '2xl', strokeWidth = iconStrokeWidth, ...props }: IconProps) => (\n    <HugeiconsIcon\n      icon={glyph}\n      size={typeof size === 'number' ? size : iconSizes[size]}\n      strokeWidth={Number(strokeWidth)}\n      {...props}\n    />\n  );\n  Icon.displayName = name;\n  return Icon;\n}\n"
    }
  ],
  "css": {
    "@layer components": {
      ".sprout-field": {
        "align-content": "start",
        "gap": "6px",
        "min-width": "0",
        "display": "grid"
      },
      ".sprout-field-header": {
        "justify-content": "space-between",
        "align-items": "center",
        "gap": "12px",
        "min-width": "0",
        "display": "flex"
      },
      ".sprout-field-heading, .sprout-choice-group-legend": {
        "flex-wrap": "wrap",
        "align-items": "center",
        "gap": "4px",
        "min-width": "0",
        "display": "flex"
      },
      ".sprout-field-label, .sprout-choice-group-legend-text": {
        "min-width": "0",
        "color": "var(--sprout-text)",
        "font-size": "var(--sprout-text-sm)",
        "overflow-wrap": "anywhere",
        "margin": "0",
        "font-weight": "500",
        "line-height": "1rem"
      },
      ".sprout-field-label": {
        "user-select": "none"
      },
      ".sprout-field[data-disabled] .sprout-field-label": {
        "cursor": "not-allowed",
        "opacity": ".5"
      },
      ".sprout-choice-group-legend-text": {
        "line-height": "1.25rem"
      },
      ".sprout-choice-group[data-disabled] .sprout-choice-group-legend-text": {
        "opacity": ".5"
      },
      ".sprout-field-requirement": {
        "color": "var(--sprout-danger)",
        "font-weight": "500"
      },
      ".sprout-field-counter": {
        "color": "var(--sprout-muted)",
        "font-size": "var(--sprout-text-xs)",
        "font-variant-numeric": "tabular-nums",
        "flex-shrink": "0",
        "margin": "0",
        "line-height": "1rem"
      },
      ".sprout-field-message": {
        "min-width": "0",
        "color": "var(--sprout-muted)",
        "font-size": "var(--sprout-text-sm)",
        "overflow-wrap": "anywhere",
        "margin": "0",
        "line-height": "1.25rem"
      },
      ".sprout-field-error": {
        "color": "var(--sprout-danger)"
      },
      ".sprout-field-sr-only": {
        "clip": "rect(0, 0, 0, 0)",
        "white-space": "nowrap",
        "border": "0",
        "width": "1px",
        "height": "1px",
        "margin": "-1px",
        "padding": "0",
        "position": "absolute",
        "overflow": "hidden"
      },
      ".sprout-field-checkbox, .sprout-field-radio": {
        "box-sizing": "border-box",
        "border": "1px solid var(--sprout-border)",
        "background-color": "var(--sprout-surface)",
        "width": "16px",
        "height": "16px",
        "color": "var(--sprout-on-primary)",
        "cursor": "pointer",
        "outline-offset": "0",
        "outline": "0 solid #0000",
        "flex-shrink": "0",
        "justify-content": "center",
        "align-items": "center",
        "margin-top": "2px",
        "padding": "0",
        "display": "flex",
        "position": "relative"
      },
      ".sprout-field-checkbox": {
        "border-radius": "4px"
      },
      ".sprout-field-radio": {
        "border-radius": "999px"
      },
      ".sprout-field-checkbox:after, .sprout-field-radio:after": {
        "content": "\"\"",
        "position": "absolute",
        "inset": "-8px -12px"
      },
      ".sprout-field-checkbox:focus-visible, .sprout-field-radio:focus-visible": {
        "outline": "var(--sprout-focus-width) solid var(--sprout-focus-ring)"
      },
      ".sprout-field-checkbox[data-checked], .sprout-field-radio[data-checked]": {
        "border-color": "var(--sprout-primary)",
        "background-color": "var(--sprout-primary)"
      },
      ".sprout-field-checkbox[data-variant=\"neutral\"][data-checked]": {
        "border-color": "var(--sprout-text)",
        "background-color": "var(--sprout-text)",
        "color": "var(--sprout-surface)"
      },
      ".sprout-field-checkbox[aria-invalid=\"true\"]:not([data-checked])": {
        "border-color": "var(--sprout-danger)",
        "box-shadow": "0 0 0 3px color-mix(in oklab, var(--sprout-danger) 20%, transparent)"
      },
      ".sprout-field-checkbox[aria-invalid=\"true\"]:focus-visible": {
        "outline-color": "var(--sprout-danger)"
      },
      ".sprout-field-checkbox[data-disabled], .sprout-field-radio[data-disabled]": {
        "cursor": "not-allowed",
        "opacity": ".5"
      },
      ".sprout-field-checkbox-indicator": {
        "color": "currentColor",
        "place-content": "center",
        "display": "grid"
      },
      ".sprout-field-checkbox-indicator[data-unchecked]": {
        "display": "none"
      },
      ".sprout-field-checkbox-indicator svg": {
        "width": "14px",
        "height": "14px"
      },
      ".sprout-checkbox-field": {
        "min-width": "0",
        "color": "var(--sprout-text)",
        "align-content": "start",
        "gap": "4px",
        "display": "grid"
      },
      ".sprout-checkbox-field[data-disabled]": {
        "color": "var(--sprout-muted)"
      },
      ".sprout-checkbox-field-label": {
        "width": "fit-content",
        "max-width": "100%",
        "font-size": "var(--sprout-text-sm)",
        "cursor": "pointer",
        "align-items": "flex-start",
        "gap": "8px",
        "font-weight": "500",
        "line-height": "1.25rem",
        "display": "flex"
      },
      ".sprout-checkbox-field[data-disabled] .sprout-checkbox-field-label": {
        "cursor": "not-allowed"
      },
      ".sprout-checkbox-field-text, .sprout-choice-option-text": {
        "overflow-wrap": "anywhere",
        "min-width": "0"
      },
      ".sprout-checkbox-field-message": {
        "padding-left": "24px"
      },
      ".sprout-choice-group": {
        "align-content": "start",
        "gap": "8px",
        "min-width": "0",
        "display": "grid"
      },
      ".sprout-choice-group-options": {
        "gap": "4px",
        "min-width": "0",
        "display": "grid"
      },
      ".sprout-choice-group[data-type=\"radio\"] .sprout-choice-group-options": {
        "gap": "8px"
      },
      "@media (width >= 40rem)": {
        ".sprout-choice-group-options[data-layout=\"columns\"]": {
          "grid-template-columns": "repeat(2, minmax(0, 1fr))"
        }
      },
      ".sprout-choice-option": {
        "isolation": "isolate",
        "box-sizing": "border-box",
        "border-radius": "var(--sprout-radius-control)",
        "min-width": "0",
        "min-height": "36px",
        "color": "var(--sprout-text)",
        "align-content": "center",
        "gap": "2px",
        "padding": "8px 10px",
        "display": "grid",
        "position": "relative"
      },
      "@media (hover: hover)": {
        ".sprout-choice-option:not([data-disabled], [data-checked]):hover": {
          "background-color": "var(--sprout-hover)"
        },
        ".sprout-choice-group[data-type=\"radio\"] .sprout-choice-option:not([data-disabled], [data-checked]):hover": {
          "background-color": "var(--sprout-hover)"
        },
        ".sprout-checkbox-field:not([data-disabled]) .sprout-checkbox-field-label:hover .sprout-field-checkbox:not([data-checked])": {
          "border-color": "var(--sprout-border-strong)"
        }
      },
      ".sprout-choice-option[data-checked]": {
        "background-color": "var(--sprout-hover)"
      },
      ".sprout-choice-option[data-disabled]": {
        "color": "var(--sprout-muted)"
      },
      ".sprout-choice-group[data-type=\"radio\"] .sprout-choice-option": {
        "border": "1px solid var(--sprout-input)",
        "background-color": "var(--sprout-surface)"
      },
      ".sprout-choice-group[data-type=\"radio\"] .sprout-choice-option[data-checked]": {
        "border-color": "color-mix(in oklab, var(--sprout-text) 35%, transparent)",
        "background-color": "var(--sprout-hover)"
      },
      ".sprout-choice-option-label": {
        "width": "100%",
        "font-size": "var(--sprout-text-sm)",
        "cursor": "pointer",
        "align-items": "flex-start",
        "gap": "8px",
        "line-height": "1.25rem",
        "display": "flex"
      },
      ".sprout-choice-option[data-disabled] .sprout-choice-option-label": {
        "cursor": "not-allowed"
      },
      ".sprout-choice-option-label:after": {
        "content": "\"\"",
        "z-index": "-1",
        "border-radius": "inherit",
        "position": "absolute",
        "inset": "0"
      },
      ".sprout-choice-option .sprout-field-checkbox, .sprout-choice-option .sprout-field-radio": {
        "position": "static"
      },
      ".sprout-choice-option .sprout-field-checkbox:after, .sprout-choice-option .sprout-field-radio:after": {
        "content": "none"
      },
      ".sprout-choice-option-description": {
        "color": "var(--sprout-muted)",
        "font-size": "var(--sprout-text-xs)",
        "overflow-wrap": "anywhere",
        "pointer-events": "none",
        "margin": "0",
        "padding-left": "24px",
        "line-height": "1rem"
      },
      "@media (pointer: coarse)": {
        ".sprout-choice-option": {
          "min-height": "44px"
        },
        ".sprout-checkbox-field-label": {
          "align-items": "center",
          "min-height": "44px"
        },
        ".sprout-checkbox-field-label .sprout-field-checkbox": {
          "margin-top": "0"
        }
      },
      ".sprout-field-separator": {
        "min-height": "20px",
        "margin-block": "-8px"
      },
      "@media (prefers-reduced-motion: no-preference)": {
        ".sprout-field-label, .sprout-choice-option, .sprout-field-checkbox, .sprout-field-radio": {
          "transition": "color var(--sprout-motion-fast, .12s) var(--sprout-motion-ease, ease-out),\n        background-color var(--sprout-motion-fast, .12s) var(--sprout-motion-ease, ease-out),\n        border-color var(--sprout-motion-fast, .12s) var(--sprout-motion-ease, ease-out),\n        opacity var(--sprout-motion-fast, .12s) var(--sprout-motion-ease, ease-out)"
        }
      },
      "@media (forced-colors: active)": {
        ".sprout-field-checkbox, .sprout-field-radio": {
          "border-color": "canvastext"
        },
        ".sprout-field-checkbox[data-checked], .sprout-field-radio[data-checked]": {
          "color": "highlighttext",
          "background-color": "highlight",
          "border-color": "highlight"
        },
        ".sprout-field-checkbox:focus-visible, .sprout-field-radio:focus-visible": {
          "outline-color": "highlight"
        },
        ".sprout-choice-option[data-checked]": {
          "outline": "1px solid highlight"
        }
      }
    }
  },
  "docs": "Docs and examples: https://sprout.tulipfarm.ai/components/field/",
  "meta": {
    "source": "packages/sprout/src/components/field.tsx"
  }
}
