Skip to content

Addressing Issue #531 - Documentation: Components should indicate if they take native props#4215

Merged
oengusmacinog-zz merged 7 commits into
microsoft:masterfrom
oengusmacinog-zz:documentation-nativeprops
Mar 12, 2018
Merged

Addressing Issue #531 - Documentation: Components should indicate if they take native props#4215
oengusmacinog-zz merged 7 commits into
microsoft:masterfrom
oengusmacinog-zz:documentation-nativeprops

Conversation

@oengusmacinog-zz

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

Copy link
Copy Markdown
Collaborator

Pull request checklist

Description of changes

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

interfaceexample

@Jahnp

Jahnp commented Mar 8, 2018

Copy link
Copy Markdown
Member

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

@micahgodbolt micahgodbolt left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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