The Open Standard for Generative UI
.root {
width: 100%;
display: grid;
grid-template-columns: repeat(var(--segment-count, 2), minmax(max-content, 1fr));
gap: var(--space-2xs);
padding: var(--space-3xs);
border: 1px solid var(--border-default);
border-radius: var(--radius-l);
background: var(--highlight-subtle);
box-sizing: border-box;
font: var(--text-label-sm);
overflow-x: auto;
scrollbar-width: none;
}
.root::-webkit-scrollbar {
display: none;
}
.option {
min-height: 32px;
border: 1px solid transparent;
border-radius: var(--radius-m);
background: transparent;
color: var(--text-neutral-secondary);
font: var(--text-label-sm);
cursor: pointer;
transition:
background-color 120ms ease,
color 120ms ease,
border-color 120ms ease;
}
.optionSelected {
border-color: var(--border-default);
background: var(--foreground);
color: var(--text-neutral-primary);
}
.option:focus-visible {
outline: 2px solid var(--border-interactive-elements-selected);
outline-offset: 1px;
}
.option:disabled {
cursor: not-allowed;
color: var(--text-neutral-tertiary);
}