Skip to content

Conversation

@oengusmacinog-zz
Copy link
Collaborator

@oengusmacinog-zz oengusmacinog-zz commented Mar 8, 2018

Pull request checklist

Description of changes

Added a info MessageBar to indicate when native props can be used on a component:

interfaceexample

@Jahnp
Copy link
Member

Jahnp commented Mar 8, 2018

Gave some feedback in person around the content of the message. This is a great change--really appreciate the clarity this adds.

Copy link
Member

@micahgodbolt micahgodbolt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Loving all the improvements to documentation. 80% of the feedback I get about why people chose fabric is because of our amazing documentation. Keep it up!

if (this.props.allowNativeProps) {
let elementString: string | string[] | JSX.Element = this.props.nativePropsElement || 'div',
componentString: JSX.Element | undefined;
// componentString: JSX.Element = <> this component</>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove commented code

</ExampleCard>
</div>
}
allowNativeProps={ 'PivitItem' }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spelling

}

if (typeof this.props.allowNativeProps === 'string') {
// titleString = <> <code>{ this.props.allowNativeProps }</code></>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

@oengusmacinog-zz oengusmacinog-zz merged commit a127122 into microsoft:master Mar 12, 2018
@microsoft microsoft locked as resolved and limited conversation to collaborators Aug 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Documentation: Components should indicate if they take native props

7 participants