Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exported EuiTextProps #3039

Merged
merged 5 commits into from
Mar 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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