-
Notifications
You must be signed in to change notification settings - Fork 86
Rewrite in Typescript: PageHeader #336
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
Changes from all commits
a806ccd
3addd8c
81c294e
1911dbc
cd70896
30f2435
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ import classnames from 'classnames'; | |
| export type TextProps = { | ||
| tag?: keyof ReactHTML; | ||
| category?: 'body' | 'heading' | 'title'; | ||
| type?: 'small' | 'regular' | 'medium' | 'large' | 'caps'; | ||
| type?: 'small' | 'regular' | 'medium' | 'large' | 'caps' | 'label'; | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since there isn't It is in the current source code of SLDS, And, original propTypes accept it: https://github.com/mashmatrix/react-lightning-design-system/blob/master/src/scripts/Text.js#L28
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| align?: 'left' | 'center' | 'right'; | ||
| className?: string; | ||
| truncate?: boolean; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should
leftActionsalso be type ofJSX.Element | Array<JSX.Element>?I found
rightActionsaccepts both single object or an array of objects in story.