react.useheadercommandbardefaults.md
January 18, 2023 ยท View on GitHub
Home > @datashaper/react > useHeaderCommandBarDefaults
useHeaderCommandBarDefaults() function
Helper to create the props necessary for the default inverted management bar. Basic colors can be customized, but note that if you do not want an always-inverted bar like that used in the DataShaper webapp, you may want to just tweak the Fluent styles as normal.
Signature:
export declare function useHeaderCommandBarDefaults(props?: Partial<ICommandBarProps>, far?: boolean, colors?: Partial<CommandBarColors>): ICommandBarProps;
Parameters
| Parameter | Type | Description |
|---|---|---|
| props | Partial<ICommandBarProps> | (Optional) |
| far | boolean | (Optional) |
| colors | Partial<CommandBarColors> | (Optional) |
Returns:
ICommandBarProps