@apptane/react-ui-divider
Version:
Divider component in Apptane React UI framework
41 lines (40 loc) • 1.72 kB
TypeScript
/// <reference types="react" />
import { AppearanceProps, CheckBoxProps, ContentAlignment, MarginProps } from "@apptane/react-ui-core";
import { DividerVisualAppearance } from "@apptane/react-ui-theme";
import PropTypes from "prop-types";
export interface DividerProps extends MarginProps, CheckBoxProps, AppearanceProps<DividerVisualAppearance> {
/**
* Content.
*/
children?: React.ReactNode;
/**
* Overrides the default width.
*/
width?: number | string;
/**
* Content alignment. Defaults to `center`.
*/
alignment?: ContentAlignment;
}
export declare const DividerPropTypes: {
children: PropTypes.Requireable<any>;
width: PropTypes.Requireable<string | number>;
alignment: PropTypes.Requireable<ContentAlignment>;
interactive: PropTypes.Requireable<boolean>;
colorMode: PropTypes.Requireable<import("@apptane/react-ui-core").ColorMode>;
appearance: PropTypes.Requireable<any>;
disabled: PropTypes.Requireable<boolean>;
readonly: PropTypes.Requireable<boolean>;
value: PropTypes.Requireable<boolean>;
onChange: PropTypes.Requireable<(...args: any[]) => any>;
margin: PropTypes.Requireable<string | number>;
marginTop: PropTypes.Requireable<string | number>;
marginRight: PropTypes.Requireable<string | number>;
marginBottom: PropTypes.Requireable<string | number>;
marginLeft: PropTypes.Requireable<string | number>;
m: PropTypes.Requireable<string | number>;
mt: PropTypes.Requireable<string | number>;
mr: PropTypes.Requireable<string | number>;
mb: PropTypes.Requireable<string | number>;
ml: PropTypes.Requireable<string | number>;
};