Skip to content

Commit

Permalink
exported EuiTextProps (#3039)
Browse files Browse the repository at this point in the history
* exported EuiTextProps

* Update src/components/text/index.ts

Co-Authored-By: Greg Thompson <[email protected]>

* Update CHANGELOG.md

Co-Authored-By: Greg Thompson <[email protected]>

Co-authored-by: Greg Thompson <[email protected]>
  • Loading branch information
anishagg17 and thompsongl authored Mar 11, 2020
1 parent 54b2c64 commit 7d95335
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## [`master`](https://github.com/elastic/eui/tree/master)

- Exported `EuiTextProps` type definition ([#3039](https://github.com/elastic/eui/pull/3039))
- Added `prepend` and `append` ability to `EuiComboBox` single selection only ([#3003](https://github.com/elastic/eui/pull/3003))

**Bug Fixes**
Expand Down
2 changes: 1 addition & 1 deletion src/components/text/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { EuiText } from './text';
export { EuiText, EuiTextProps } from './text';
export { EuiTextColor } from './text_color';
export { EuiTextAlign } from './text_align';
4 changes: 2 additions & 2 deletions src/components/text/text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ export type TextSize = keyof typeof textSizeToClassNameMap;

export const TEXT_SIZES = keysOf(textSizeToClassNameMap);

type Props = CommonProps &
export type EuiTextProps = CommonProps &
Omit<HTMLAttributes<HTMLDivElement>, 'color'> & {
textAlign?: TextAlignment;
size?: TextSize;
color?: TextColor;
grow?: boolean;
};

export const EuiText: FunctionComponent<Props> = ({
export const EuiText: FunctionComponent<EuiTextProps> = ({
size = 'm',
color,
grow = true,
Expand Down

0 comments on commit 7d95335

Please sign in to comment.