@wix/design-system
Version:
@wix/design-system
26 lines • 1.06 kB
TypeScript
import { ValuesOf } from '../utils/typeUtils';
import { DOCK_POSITION } from './Dock.constants';
export type DockPosition = ValuesOf<typeof DOCK_POSITION>;
export type DockProps = {
/** Applies a data-hook HTML attribute that can be used in the tests. */
dataHook?: string;
/** Specifies a CSS class name to be appended to the component's root element.
* @internal
*/
className?: string;
/** Sets the selected position or positions. */
value?: DockPosition | DockPosition[];
/** Defines a callback function which is called when a position is clicked. */
onChange?: (position: DockPosition) => void;
/** Displays the center point. When `false`, the center point is not rendered.
* @default true
*/
centerSelection?: boolean;
/** Specifies whether user interactions are disabled.
* @default false
*/
disabled?: boolean;
/** Sets the position or positions that cannot be selected. */
disabledDirection?: DockPosition | DockPosition[];
};
//# sourceMappingURL=Dock.types.d.ts.map