The indeterminate checkbox's state can only be set through javascript. There is no indeterminate attribute.
Add the data-js-checkbox-indeterminate data attribute to a checkbox to be able to target it through javascript. The following line can be used to set the indeterminate state on a single checkbox:
document.querySelector("[data-js-checkbox-indeterminate]").indeterminate = true;
        
    
        
        <input value="checkbox-value" type="checkbox" name="" class="sr-only" id="" disabled checked><span class="sds-checkboxDot" aria-hidden="true"></span>
        
    
        {%- if input -%}
	<input value="{{ value }}" type="checkbox" name="{{ name }}" class="sr-only{% for mod in inputModifiers %} {{ mod }}{% endfor %}" id="{{ id }}"{% if disabled %} disabled{% endif %}{% if checked %} checked{% endif %}{% for attrKey, attr in attrs %} {{ attrKey }}="{{ attr }}"{% endfor %}>
{%- endif -%}
<span class="{{ namespace }}checkboxDot{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}" aria-hidden="true"></span>
    
                                /* variables specific to current element */
$checkbox-dot-dimensions: $checkbox-dot-dimensions-global;
.#{$namespace}checkboxDot {
	/* Save root element context for easy access if nesting is needed */
	$self: &;
	/* properties of current element  + media queries */
	border-width: $border-width*2;
	border-style: solid;
	width: $checkbox-dot-dimensions-global;
	height: $checkbox-dot-dimensions-global;
	@extend %checkboxDotShape;
	/* Pseudo Elements */
	&::before {
		content: map-deep-get($token-icon-map, "checksmall");
		font-size: map-deep-get($design-tokens, "sys-font-size-body-extra-large-max");
		opacity: 0;
		@include icon-base;
	}
	&::after {
	}
	/*
	Include elements that are linked to the current element but have to reside at the root level of the stylesheet
	(e.g: keyframes)
	*/
	@at-root {
		@keyframes rotation {
			0% {
				transform: rotate(0deg);
			}
			100% {
				transform: rotate(360deg);
			}
		}
	}
	/* children - write selector in full in comments in order to facilitate search */
	/* modifiers */
	// checkboxDot -active
	INPUT:indeterminate + &,
	INPUT:checked + &,
	&.-isActive {
		@include checkboxInputChecked();
	}
	INPUT:indeterminate + & {
		&::before {
			content: map-deep-get($token-icon-map, "undetermined");
		}
	}
	// disabled
	&.-isDisabled,
	INPUT[disabled] + &, INPUT:disabled + & {
		@include checkboxInputDisabled();
	}
	&.-isDisabled:checked,
	INPUT[disabled]:checked + &, INPUT:disabled:checked + & {
		@include checkboxInputDisabledChecked();
	}
	&.-isLoading.-isLoading {
		@include checkboxInputLoading();
		INPUT[disabled]:indeterminate + &,
		INPUT[disabled]:checked + & {
			@include checkboxInputLoadingDisabledChecked();
		}
	}
	/* random parent element */
	/* 
	*
	*   Syntax : .randomParentElt & {}
	*
	*/
	.#{$namespace}showCustomIndicatorHover {
		&:hover & {
			@media (hover: hover) {
				@include checkboxInputHovered();
			}
		}
	}
	/* Pseudo Classes */
	&:hover {
		@media (hover: hover) {
			@include checkboxInputHovered();
		}
	}
	INPUT:active:not([disabled]) + &,
	INPUT:focus-visible + & {
		@include checkboxInputFocused();
	}
	&:active {
	}
	&:focus,
	&:active {
	}
}