office-ui-fabric-react APIs
- Stack
- DefaultButton
- Link
- PrimaryButton
- IconButton
- MessageBar
- MessageBarType
- Text
- Icon
- Dropdown
- IDropdownOption
- Spinner
- TextField
- initializeIcons
- FontWeights
- DialogType
- DialogFooter
- StackItem
- Panel
- IStackTokens
- Callout
- Toggle
- Image
- ActionButton
- getTheme
- Dialog
- Checkbox
- Pivot
- PivotItem
- FocusZone
- IContextualMenuProps
- TooltipHost
- ProgressIndicator
- ITheme
- ComboBox
- IComboBoxOption
- SpinnerSize
- Label
- SearchBox
- IIconProps
- IButtonProps
- ImageFit
- mergeStyles
- mergeStyleSets
- FontSizes
- Modal
- FocusTrapCallout
- CommandBarButton
- IStackStyles
- getId
- DetailsRow
- DetailsList
- IDetailsListProps
- IColumn
- DetailsListLayoutMode
- Selection
- SelectionMode
- createTheme
- ICustomizations
- IPalette
- IPersonaCoinStyleProps
- IPersonaCoinStyles
- IDatePickerStyleProps
- IDatePickerStyles
- IPeoplePickerItemSelectedStyleProps
- IPeoplePickerItemSelectedStyles
- DatePicker
- IDatePickerStrings
- DayOfWeek
- IComboBox
- ITextStyles
- Shimmer
- ShimmerElementsGroup
- Persona
- IPersonaSharedProps
- Overlay
- FontIcon
- SwatchColorPicker
- IDropdownStyles
- TeachingBubble
- ChoiceGroup
- IChoiceGroupOption
- Separator
- Customizer
- css
- classNamesFunction
- ITextField
- DialogContent
- find
- CompoundButton
- DocumentCard
- DocumentCardDetails
- DocumentCardTitle
- DocumentCardType
- ISize
- CommandButton
- PanelType
- IPersona
- MessageBarButton
- autobind
- AnimationStyles
- DirectionalHint
- FocusZoneDirection
- List
Other Related APIs
office-ui-fabric-react#FontIcon TypeScript Examples
The following examples show how to use
office-ui-fabric-react#FontIcon.
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: ErrorPage.tsx From hypertrons-crx with Apache License 2.0 | 5 votes |
ErrorPage: React.FC<ErrorPageProps> = ({ errorCode }) => {
const [inited, setInited] = useState(false);
const [settings, setSettings] = useState(new Settings());
useEffect(() => {
const initSettings = async () => {
const temp = await loadSettings();
setSettings(temp);
setInited(true);
};
if (!inited) {
initSettings();
}
}, [inited, settings]);
const errMessageObj = getMessageByLocale(
`global_error_message_${errorCode}`,
settings.locale
);
const onButtonClick = () => {
history.go(-1);
};
return (
<Stack
tokens={stackTokens}
style={{
width: '250px',
margin: 'auto',
}}
>
<Stack.Item>
<FontIcon iconName="PageRemove" style={{ fontSize: 30 }} />
</Stack.Item>
<Stack.Item>
<h3>{errMessageObj.status}</h3>
</Stack.Item>
<Stack.Item>
<strong>{errMessageObj.measure.text}</strong>
<ul style={{ margin: '15px 0 0 15px' }}>
{errMessageObj.measure.tips.map((tip: string) => {
return <li>{tip}</li>;
})}
</ul>
</Stack.Item>
<Stack.Item>
<Link href={HYPERTRONS_CRX_NEW_ISSUE} target="_blank" underline>
{getMessageByLocale('global_sendFeedback', settings.locale)}
</Link>
</Stack.Item>
<Stack.Item>
<DefaultButton
text={getMessageByLocale('global_btn_goBack', settings.locale)}
iconProps={navigateBackIcon}
onClick={onButtonClick}
/>
</Stack.Item>
</Stack>
);
}