@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! ⚡
77 lines (64 loc) • 1.39 kB
CSS
.root {
display: inline-flex;
width: fit-content;
align-items: stretch;
}
.root > * {
flex-shrink: 0;
}
.root > *:focus-visible {
position: relative;
z-index: 1;
}
.root > input {
flex: 1 1 auto;
}
.horizontal > *:not(:first-child) {
margin-left: -1px;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
.horizontal > *:not(:last-child) {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.vertical {
flex-direction: column;
width: 100%;
}
.vertical > *:not(:first-child) {
margin-top: -1px;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
.vertical > *:not(:last-child) {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
.text {
display: inline-flex;
align-items: center;
gap: var(--ac-space-2);
padding: 0 var(--ac-space-4);
border: 1px solid var(--ac-border);
border-radius: var(--ac-radius-md);
background-color: var(--ac-muted);
color: var(--ac-foreground);
font-size: var(--ac-text-sm);
font-weight: 500;
box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.text svg {
width: 1rem;
height: 1rem;
flex-shrink: 0;
}
.separator {
position: relative;
margin: 0 ;
align-self: stretch;
background-color: var(--ac-border);
}
.separator[data-orientation="vertical"] {
height: auto;
}