-
-
Notifications
You must be signed in to change notification settings - Fork 827
Open
Labels
Feature: Want this? Upvote it!This PR or Issue may be a great consideration for a future idea.This PR or Issue may be a great consideration for a future idea.
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already include this feature request, without success.
Describe the Feature Request
Be able to set a part without a documentation in the readme.
Describe the Use Case
We use Stencil to build a design system and we introduced some part for internal use and would to not expose it publicly in user documentation.
Usually we rely on @internal tag for this purpose when it's for a prop, event or method.
It seems not possible for part or a slot.
For a slot it seems possible to just not add a @slot tag but for part even without the tag it's added to the readme.
Describe Preferred Solution
/**
* @part @internal inner - inner element
*/
@Component({
tag: 'my-button',
shadow: true,
})
export class Button {
render() {
return (
<div>
<button part="inner"></button>
</div>
);
}
}Describe Alternatives
Do not automatically add parts to readme if not documented
Related Code
Additional Information
hacky workaround (don't judge)
- part="inner"
+ {...{ part: 'inner' }}I think the spread make fail the parser to found it.
Perronef5, MarkChrisLevy, Chili6666, ncamera and Sukaato
Metadata
Metadata
Assignees
Labels
Feature: Want this? Upvote it!This PR or Issue may be a great consideration for a future idea.This PR or Issue may be a great consideration for a future idea.