prop-types#bool JavaScript Examples
The following examples show how to use
prop-types#bool.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: types.js From supportal-frontend with MIT License | 6 votes |
AuthContextType = shape({ answerCustomChallenge: func.isRequired, checkAuthentication: func.isRequired, getPublicChallengeParameters: func.isRequired, hasInitialized: bool.isRequired, isAuthenticated: bool.isRequired, profile: UserProfileType, signIn: func.isRequired, signOut: func.isRequired, user: object, })
Example #2
Source File: index.js From juggernaut-desktop with MIT License | 6 votes |
messageType = shape({
id: number.isRequired,
conversationId: number.isRequired,
contentType: string.isRequired,
createdAt: number.isRequired,
senderPubkey: string.isRequired,
receiverPubkey: string.isRequired,
content: string.isRequired,
unread: bool.isRequired,
valid: bool.isRequired,
amountMSats: number.isRequired,
feeAmountMSats: number.isRequired,
response: shape({
amountMSats: number.isRequired,
feeAmountMSats: number.isRequired,
createdAt: number.isRequired
})
})
Example #3
Source File: SlideAnimation.js From wix-style-react with MIT License | 6 votes |
SlideAnimation.propTypes = { isVisible: bool.isRequired, direction: oneOf([SlideDirection.in, SlideDirection.out]), animateAppear: bool, animateEnter: bool, animateLeave: bool, children: node, onEnter: func, onEntered: func, onExit: func, onExited: func, };
Example #4
Source File: Calendar.js From react-nice-dates with MIT License | 6 votes |
Calendar.propTypes = {
locale: object.isRequired,
minimumDate: instanceOf(Date),
maximumDate: instanceOf(Date),
modifiers: objectOf(func),
modifiersClassNames: objectOf(string),
month: instanceOf(Date),
onMonthChange: func,
onDayHover: func,
onDayClick: func,
weekdayFormat: string,
touchDragEnabled: bool
}
Example #5
Source File: Scrollable.props.js From webrix with Apache License 2.0 | 6 votes |
propTypes = {
style: shape({}),
onScroll: func,
onUpdate: func,
scrollOnDOMChange: bool,
children: node,
element: node,
cssVarsOnTracks: bool, // temporary workaround for Blink bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1266517
}
Example #6
Source File: Kpi.js From covid19japan with MIT License | 6 votes |
Kpi.propTypes = {
id: string,
label: string,
value: string,
diff: string,
caption: string,
chartName: string,
percent: string,
isActive: bool,
};
Example #7
Source File: TypeFilter.js From discovery-mobile-ui with MIT License | 6 votes |
TypeFilter.propTypes = {
allTypeFilters: arrayOf(shape({
type: string.isRequired,
typeIsEnabled: bool.isRequired,
label: string.isRequired,
hasItemsInDateRange: bool.isRequired,
})).isRequired,
toggleResourceTypeFilterAction: func.isRequired,
};
Example #8
Source File: ControlledMenu.js From react-menu with MIT License | 6 votes |
process.env.NODE_ENV !== "production" ? ControlledMenu.propTypes = /*#__PURE__*/_extends({}, rootMenuPropTypes, {
state: /*#__PURE__*/oneOf( /*#__PURE__*/values(MenuStateMap)),
anchorPoint: /*#__PURE__*/exact({
x: number,
y: number
}),
anchorRef: object,
skipOpen: object,
captureFocus: bool,
menuItemFocus: /*#__PURE__*/exact({
position: /*#__PURE__*/oneOfType([string, number]),
alwaysUpdate: bool
}),
onClose: func
}) : void 0;
Example #9
Source File: Device.js From techno-broadlink with MIT License | 6 votes |
Device.propTypes = {
name: string,
ip: string,
mac: string,
selected: bool,
model: string,
manufacturer: string,
handleClick: func,
disabled: bool,
handleChange: func,
};
Example #10
Source File: profile.js From gatsby-theme-intro with MIT License | 6 votes |
ProfileType = {
about: string.isRequired,
budget: shape({
currency: string.isRequired,
default: number.isRequired,
max: number.isRequired,
min: number.isRequired,
}).isRequired,
company: string.isRequired,
focus: string.isRequired,
focus_url: string,
for_hire: bool.isRequired,
image: shape({
childImageSharp: object.isRequired,
publicURL: string.isRequired,
}),
initials: string.isRequired,
location: string.isRequired,
name: string.isRequired,
profession: string.isRequired,
relocation: bool.isRequired,
skills: arrayOf(string).isRequired,
tools: arrayOf(string).isRequired,
}
Example #11
Source File: types.js From supportal-frontend with MIT License | 5 votes |
UserAuthType = shape({
userId: string.isRequired,
idToken: string.isRequired,
timestamp: string,
authenticated: bool.isRequired,
})
Example #12
Source File: index.js From juggernaut-desktop with MIT License | 5 votes |
pendingHtlcType = shape({
incoming: bool.isRequired,
amount: number.isRequired,
hashLock: string.isRequired,
expirationHeight: number.isRequired
})
Example #13
Source File: ColorPickerHistory.js From wix-style-react with MIT License | 5 votes |
ColorPickerHistory.propTypes = { show: bool.isRequired, previous: object.isRequired, current: object.isRequired, onClick: func.isRequired, };
Example #14
Source File: Dialog.jsx From Turnip-Calculator with MIT License | 5 votes |
CustomDialog.propTypes = {
open: bool.isRequired,
onClose: func,
title: any,
description: any,
children: any,
actions: any,
};
Example #15
Source File: Popover.js From react-nice-dates with MIT License | 5 votes |
Popover.propTypes = { children: node, open: bool }
Example #16
Source File: index.js From thekusuma with MIT License | 5 votes |
ConfirmationSection.propTypes = {
codeLink: string.isRequired,
isInvitation: bool.isRequired,
guestName: string.isRequired,
};
Example #17
Source File: proptypes-shapes.js From what-front with MIT License | 5 votes |
studentsStateShape = {
error: string.isRequired,
isLoading: bool.isRequired,
isLoaded: bool.isRequired,
data: oneOfType([arrayOf(shape(studentShape)), arrayOf(undefined)]).isRequired,
}
Example #18
Source File: Collapsible.props.js From webrix with Apache License 2.0 | 5 votes |
propTypes = { expanded: bool, onTransitionEnd: func, children: node.isRequired, }
Example #19
Source File: index.js From covid19japan with MIT License | 5 votes |
Loader.propTypes = { isLoaded: bool.isRequired, };
Example #20
Source File: TurnTimer.js From fifa with GNU General Public License v3.0 | 5 votes |
TurnTimer.propTypes = {
isTurn: bool.isRequired,
currentPlayer: string.isRequired,
duration: number.isRequired
};
Example #21
Source File: index.js From discovery-mobile-ui with MIT License | 5 votes |
CollectionNotes.propTypes = {
collectionNotes: arrayOf(shape({}).isRequired).isRequired,
editNoteId: string,
handleEditNote: func.isRequired,
fromNotesScreen: bool.isRequired,
};