Instantly share code, notes, and snippets.
-
Star
(0)
0
You must be signed in to star a gist -
Fork
(1)
1
You must be signed in to fork a gist
-
Save ejmudrak/9cf4b792303db4339f598e8829d04cc8 to your computer and use it in GitHub Desktop.
Storybook Hidden Props
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const hiddenProps = [ | |
// Aria props | |
'aria-activedescendant', | |
'aria-atomic', | |
'aria-autocomplete', | |
'aria-busy', | |
'aria-checked', | |
'aria-colcount', | |
'aria-colindex', | |
'aria-colspan', | |
'aria-controls', | |
'aria-current', | |
'aria-describedby', | |
'aria-details', | |
'aria-disabled', | |
'aria-dropeffect', | |
'aria-errormessage', | |
'aria-expanded', | |
'aria-flowto', | |
'aria-grabbed', | |
'aria-haspopup', | |
'aria-hidden', | |
'aria-invalid', | |
'aria-keyshortcuts', | |
'aria-label', | |
'aria-labelledby', | |
'aria-level', | |
'aria-live', | |
'aria-modal', | |
'aria-multiline', | |
'aria-multiselectable', | |
'aria-orientation', | |
'aria-owns', | |
'aria-placeholder', | |
'aria-posinset', | |
'aria-pressed', | |
'aria-readonly', | |
'aria-relevant', | |
'aria-required', | |
'aria-roledescription', | |
'aria-rowcount', | |
'aria-rowindex', | |
'aria-rowspan', | |
'aria-selected', | |
'aria-setsize', | |
'aria-sort', | |
'aria-valuemax', | |
'aria-valuemin', | |
'aria-valuenow', | |
'aria-valuetext', | |
// Some of the less relevant event handler props | |
'onCopy', | |
'onCopyCapture', | |
'onCut', | |
'onCutCapture', | |
'onPaste', | |
'onPasteCapture', | |
'onCompositionEnd', | |
'onCompositionEndCapture', | |
'onCompositionStart', | |
'onCompositionStartCapture', | |
'onCompositionUpdate', | |
'onCompositionUpdateCapture', | |
'onFocusCapture', | |
'onBlurCapture', | |
'onChangeCapture', | |
'onBeforeInput', | |
'onBeforeInputCapture', | |
'onInput', | |
'onInputCapture', | |
'onReset', | |
'onResetCapture', | |
'onSubmit', | |
'onSubmitCapture', | |
'onInvalid', | |
'onInvalidCapture', | |
'onLoad', | |
'onLoadCapture', | |
'onError', | |
'onErrorCapture', | |
'onKeyDown', | |
'onKeyDownCapture', | |
'onKeyPress', | |
'onKeyPressCapture', | |
'onKeyUp', | |
'onKeyUpCapture', | |
'onAbort', | |
'onAbortCapture', | |
'onCanPlay', | |
'onCanPlayCapture', | |
'onCanPlayThrough', | |
'onCanPlayThroughCapture', | |
'onDurationChange', | |
'onDurationChangeCapture', | |
'onEmptied', | |
'onEmptiedCapture', | |
'onEncrypted', | |
'onEncryptedCapture', | |
'onEnded', | |
'onEndedCapture', | |
'onLoadedData', | |
'onLoadedDataCapture', | |
'onLoadedMetadata', | |
'onLoadedMetadataCapture', | |
'onLoadStart', | |
'onLoadStartCapture', | |
'onPause', | |
'onPauseCapture', | |
'onPlay', | |
'onPlayCapture', | |
'onPlaying', | |
'onPlayingCapture', | |
'onProgress', | |
'onProgressCapture', | |
'onRateChange', | |
'onRateChangeCapture', | |
'onSeeked', | |
'onSeekedCapture', | |
'onSeeking', | |
'onSeekingCapture', | |
'onStalled', | |
'onStalledCapture', | |
'onSuspend', | |
'onSuspendCapture', | |
'onTimeUpdate', | |
'onTimeUpdateCapture', | |
'onVolumeChange', | |
'onVolumeChangeCapture', | |
'onWaiting', | |
'onWaitingCapture', | |
'onAuxClick', | |
'onAuxClickCapture', | |
'onClick', | |
'onClickCapture', | |
'onContextMenu', | |
'onContextMenuCapture', | |
'onDoubleClick', | |
'onDoubleClickCapture', | |
'onDrag', | |
'onDragCapture', | |
'onDragEnd', | |
'onDragEndCapture', | |
'onDragEnter', | |
'onDragEnterCapture', | |
'onDragExit', | |
'onDragExitCapture', | |
'onDragLeave', | |
'onDragLeaveCapture', | |
'onDragOver', | |
'onDragOverCapture', | |
'onDragStart', | |
'onDragStartCapture', | |
'onDrop', | |
'onDropCapture', | |
'onMouseDown', | |
'onMouseDownCapture', | |
'onMouseEnter', | |
'onMouseLeave', | |
'onMouseMove', | |
'onMouseMoveCapture', | |
'onMouseOut', | |
'onMouseOutCapture', | |
'onMouseOver', | |
'onMouseOverCapture', | |
'onMouseUp', | |
'onMouseUpCapture', | |
'onSelect', | |
'onSelectCapture', | |
'onTouchCancel', | |
'onTouchCancelCapture', | |
'onTouchEnd', | |
'onTouchEndCapture', | |
'onTouchMove', | |
'onTouchMoveCapture', | |
'onTouchStart', | |
'onTouchStartCapture', | |
'onPointerDown', | |
'onPointerDownCapture', | |
'onPointerMove', | |
'onPointerMoveCapture', | |
'onPointerUp', | |
'onPointerUpCapture', | |
'onPointerCancel', | |
'onPointerCancelCapture', | |
'onPointerEnter', | |
'onPointerEnterCapture', | |
'onPointerLeave', | |
'onPointerLeaveCapture', | |
'onPointerOver', | |
'onPointerOverCapture', | |
'onPointerOut', | |
'onPointerOutCapture', | |
'onGotPointerCapture', | |
'onGotPointerCaptureCapture', | |
'onLostPointerCapture', | |
'onLostPointerCaptureCapture', | |
'onScroll', | |
'onScrollCapture', | |
'onWheel', | |
'onWheelCapture', | |
'onAnimationStart', | |
'onAnimationStartCapture', | |
'onAnimationEnd', | |
'onAnimationEndCapture', | |
'onAnimationIteration', | |
'onAnimationIterationCapture', | |
'onTransitionEnd', | |
'onTransitionEndCapture', | |
// Miscellaneous props that we don't use (feel free to delete any that are needed) | |
'about', | |
'accessKey', | |
'autoCapitalize', | |
'autoCorrect', | |
'autoSave', | |
'contentEditable', | |
'contextMenu', | |
'dangerouslySetInnerHTML', | |
'datatype', | |
'dir', | |
'draggable', | |
'focused', | |
'form', | |
'hidden', | |
'hiddenLabel', | |
'inlist', | |
'inputMode', | |
'is', | |
'itemID', | |
'itemProp', | |
'itemRef', | |
'itemScope', | |
'itemType', | |
'lang', | |
'prefix', | |
'property', | |
'radioGroup', | |
'ref', | |
'resource', | |
'results', | |
'role', | |
'security', | |
'slot', | |
'spellCheck', | |
'suppressContentEditableWarning', | |
'suppressHydrationWarning', | |
'tabIndex', | |
'translate', | |
'typeof', | |
'unselectable', | |
'vocab', | |
'formAction', | |
'formEncType', | |
'formMethod', | |
'formNoValidate', | |
'formTarget', | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment