@react-md/app-bar
Version:
This small package implments the AppBar spec in material design.
21 lines (20 loc) • 964 B
TypeScript
import type { HTMLAttributes } from "react";
import type { AppBarColorInherit } from "./useInheritContext";
export interface AppBarTitleProps extends HTMLAttributes<HTMLHeadingElement>, AppBarColorInherit {
/**
* Boolean if the title should be placed at the `$rmd-app-bar-title-keyline`.
*/
keyline?: boolean;
/**
* Boolean if the title should not automatically try to wrap the content and
* span two lines if it is too big. This will automatically add trailing
* ellipsis for the text overflow as well.
*/
noWrap?: boolean;
}
/**
* This component is used to create a title for your application. If your app is
* not using the `AppBarNav` component, you can enable the `keyline` prop to
* ensure that your title aligns with the keyline of your navigation element.
*/
export declare const AppBarTitle: import("react").ForwardRefExoticComponent<AppBarTitleProps & import("react").RefAttributes<HTMLHeadingElement>>;