@react-md/app-bar
Version:
This small package implments the AppBar spec in material design.
29 lines (28 loc) • 1.07 kB
TypeScript
import { AppBarColorInherit } from "./useInheritContext";
export interface AppBarActionClassNameProps extends AppBarColorInherit {
/**
* An optional className to merge with the nav classes.
*/
className?: string;
/**
* Boolean if this is the first action within the app bar. This is really just
* used to automatically right-align all the actions by applying
* `margin-left: auto` to this action.
*/
first?: boolean;
/**
* Boolean if this is the last action within the app bar's row. This will just
* apply the `$rmd-app-bar-lr-margin` as `margin-right`.
*
* NOTE: This should not be used when using an overflow menu.
*/
last?: boolean;
}
/**
* This is a hook that will apply the nav classnames to an element. This should
* really not be used externally and is really just for creating dropdown menus
* within app bars that have the action styles.
*
* @internal
*/
export declare function useActionClassName({ first, last, inheritColor, className, }?: AppBarActionClassNameProps): string;