@arolariu/components
Version:
🎨 70+ beautiful, accessible React components built on Base UI. TypeScript-first, CSS Modules styling, tree-shakeable, SSR-ready. Perfect for modern web apps, design systems & rapid prototyping. Zero config, maximum flexibility! ⚡
44 lines (38 loc) • 913 B
CSS
.checkbox {
display: inline-flex;
align-items: center;
justify-content: center;
width: 1rem;
height: 1rem;
flex-shrink: 0;
border-radius: var(--ac-radius-xs);
border: 1px solid var(--ac-primary);
background-color: transparent;
color: currentcolor;
cursor: pointer;
outline: none;
transition: background-color var(--ac-transition-fast), border-color var(--ac-transition-fast);
&:focus-visible {
outline: 2px solid var(--ac-ring);
outline-offset: 2px;
}
&[data-disabled] {
cursor: not-allowed;
opacity: 0.5;
}
&[data-checked],
&[data-indeterminate] {
background-color: var(--ac-primary);
color: var(--ac-primary-foreground);
border-color: var(--ac-primary);
}
}
.indicator {
display: flex;
align-items: center;
justify-content: center;
& svg {
width: 0.75rem;
height: 0.75rem;
}
}