mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-16 19:33:11 +02:00
SaaS fixes (#6578)
Co-authored-by: Claude Opus 4.8 <[email protected]> Co-authored-by: James Brunton <[email protected]> Co-authored-by: Reece Browne <[email protected]> Co-authored-by: ConnorYoh <[email protected]> Co-authored-by: Reece <[email protected]> Co-authored-by: EthanHealy01 <[email protected]> Co-authored-by: Ludy <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.8
James Brunton
Reece Browne
ConnorYoh
Reece
EthanHealy01
Ludy
parent
96accea984
commit
ddf78d11ae
@@ -7,13 +7,15 @@ export interface CheckboxProps extends Omit<
|
||||
> {
|
||||
label?: ReactNode;
|
||||
description?: ReactNode;
|
||||
/** Optional glyph shown between the box and the label text. */
|
||||
leadingIcon?: ReactNode;
|
||||
/** Tri-state checkbox visual (still focusable + submittable, but renders the dash). */
|
||||
indeterminate?: boolean;
|
||||
}
|
||||
|
||||
export const Checkbox = forwardRef<HTMLInputElement, CheckboxProps>(
|
||||
function Checkbox(
|
||||
{ label, description, indeterminate, className, id, ...rest },
|
||||
{ label, description, leadingIcon, indeterminate, className, id, ...rest },
|
||||
ref,
|
||||
) {
|
||||
return (
|
||||
@@ -57,6 +59,11 @@ export const Checkbox = forwardRef<HTMLInputElement, CheckboxProps>(
|
||||
</svg>
|
||||
<span className="sui-check__dash" />
|
||||
</span>
|
||||
{leadingIcon && (
|
||||
<span className="sui-check__icon" aria-hidden>
|
||||
{leadingIcon}
|
||||
</span>
|
||||
)}
|
||||
{(label || description) && (
|
||||
<span className="sui-check__text">
|
||||
{label && <span className="sui-check__label">{label}</span>}
|
||||
|
||||
Reference in New Issue
Block a user