preact-material-components
Version:
preact wrapper for "Material Components for the web"
66 lines (65 loc) • 2.26 kB
TypeScript
import { MDCTopAppBar } from '@material/top-app-bar';
import MaterialComponent from '../Base/MaterialComponent';
export interface ITopAppBarRowProps {
}
export interface ITopAppBarRowState {
}
export declare class TopAppBarRow extends MaterialComponent<ITopAppBarRowProps, ITopAppBarRowState> {
protected componentName: string;
protected mdcProps: never[];
protected materialDom(props: any): JSX.Element;
}
export interface ITopAppBarSectionProps {
'align-start'?: boolean;
'align-end'?: boolean;
}
export interface ITopAppBarSectionState {
}
export declare class TopAppBarSection extends MaterialComponent<ITopAppBarSectionProps, ITopAppBarSectionState> {
protected componentName: string;
protected mdcProps: string[];
protected materialDom(props: any): JSX.Element;
}
export interface ITopAppBarIconProps {
navigation?: boolean;
}
export interface ITopAppBarIconState {
}
export declare class TopAppBarIcon extends MaterialComponent<ITopAppBarIconProps, ITopAppBarIconState> {
protected componentName: string;
protected mdcProps: never[];
protected materialDom(props: any): JSX.Element;
}
export interface ITopAppBarTitleProps {
}
export interface ITopAppBarTitleState {
}
export declare class TopAppBarTitle extends MaterialComponent<ITopAppBarTitleProps, ITopAppBarTitleState> {
protected componentName: string;
protected mdcProps: never[];
protected materialDom(props: any): JSX.Element;
}
export interface ITopAppBarProps {
short?: boolean;
'short-collapsed'?: boolean;
fixed?: boolean;
prominent?: boolean;
onNav: JSX.GenericEventHandler;
}
export interface ITopAppBarState {
}
export declare class TopAppBar extends MaterialComponent<ITopAppBarProps, ITopAppBarState> {
MDComponent?: MDCTopAppBar;
protected componentName: string;
protected mdcProps: string[];
componentDidMount(): void;
componentWillUnmount(): void;
protected onNav(e: any): void;
protected materialDom(props: any): JSX.Element;
}
export default class extends TopAppBar {
static readonly Section: typeof TopAppBarSection;
static readonly Icon: typeof TopAppBarIcon;
static readonly Title: typeof TopAppBarTitle;
static readonly Row: typeof TopAppBarRow;
}