Skip to content

Commit

Permalink
Fix object notation border width barchart (#9800)
Browse files Browse the repository at this point in the history
* make object available for bar as border Radius

* override only the bar borderWidth prop

* spacing
  • Loading branch information
LeeLenaleee committed Oct 26, 2021
1 parent 2a97192 commit 10106e4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion types/index.esm.d.ts
Expand Up @@ -1908,7 +1908,7 @@ export interface BarProps {
height: number;
}

export interface BarOptions extends CommonElementOptions {
export interface BarOptions extends Omit<CommonElementOptions, 'borderWidth'> {
/**
* The base value for the bar in data units along the value axis.
*/
Expand All @@ -1932,6 +1932,12 @@ export interface BarOptions extends CommonElementOptions {
* @default 'auto'
*/
inflateAmount: number | 'auto';

/**
* Width of the border, number for all sides, object to specify width for each side specifically
* @default 0
*/
borderWidth: number | { top?: number, right?: number, bottom?: number, left?: number };
}

export interface BorderRadius {
Expand Down

0 comments on commit 10106e4

Please sign in to comment.