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 2 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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## [`master`](https://github.com/elastic/eui/tree/master)


- Exported `EuiText`'s props([#3039](https://github.com/elastic/eui/pull/3039))

**Bug Fixes**

- Fixed `EuiFieldNumber` so values of type `number` are now allowed ([#3020](https://github.com/elastic/eui/pull/3020))
Expand Down
1 change: 1 addition & 0 deletions src/components/text/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export { EuiText } from './text';
export { EuiTextColor } from './text_color';
export { EuiTextAlign } from './text_align';
export {EuiTextProps }from './text'
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