mirror of
https://github.com/nexu-io/openmotion.git
synced 2026-12-02 08:39:34 +08:00
* Port inspector and project sidebar UI refinements * Refine inspector controls and compact panel navigation * Expose shared inspector styles and align opacity regression checks * Keep inspector controls covered by shared style validation * Commit pending color channels before dismissing inline picker --------- Co-authored-by: fengcao <fengcao@Mac.lan>
17 lines
589 B
TypeScript
17 lines
589 B
TypeScript
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
|
|
interface DisclosureRowProps extends ComponentPropsWithoutRef<'div'> {
|
|
active: boolean;
|
|
action: ReactNode;
|
|
}
|
|
|
|
/** Project-group row presentation with an independent trailing action. */
|
|
export function DisclosureRow({ active, action, children, className, ...props }: DisclosureRowProps) {
|
|
return (
|
|
<div {...props} className={className ? `om-disclosure-row ${className}` : 'om-disclosure-row'} data-active={active}>
|
|
{children}
|
|
<div className="om-disclosure-row-action">{action}</div>
|
|
</div>
|
|
);
|
|
}
|