Files
openmotion/packages/design-system/react/DisclosureRow.tsx
open-design-crew[bot] fe5782ebae Refine inspector controls, project navigation and panel tabs (#669)
* 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>
2026-11-19 21:10:54 +08:00

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>
);
}