actions IButtonProps[]
The actions available for this document.
className string
Optional override class name
componentRef IRefObject<IDocumentCardActions>
Gets the component ref.
styles IStyleFunctionOrObject<IDocumentCardActionsStyleProps, IDocumentCardActionsStyles>
Call to provide customized styling that will layer on top of the variant rules
theme ITheme
Theme provided by HOC.
views Number
The number of views this document has received.
activity string
Describes the activity that has taken place, such as "Created Feb 23, 2016".
className string
Optional override class name
componentRef IRefObject<IDocumentCardActivity>
Gets the component ref.
people IDocumentCardActivityPerson[]
One or more people who are involved in this activity.
styles IStyleFunctionOrObject<IDocumentCardActivityStyleProps, IDocumentCardActivityStyles>
Call to provide customized styling that will layer on top of the variant rules
theme ITheme
Theme provided by HOC.
className string
Optional override class name
componentRef IRefObject<IDocumentCardDetails>
Gets the component ref.
styles IStyleFunctionOrObject<IDocumentCardDetailsStyleProps, IDocumentCardDetailsStyles>
Call to provide customized styling that will layer on top of the variant rules
theme ITheme
Theme provided by HOC.
className string
Optional override class name
componentRef IRefObject<IDocumentCardImage>
Gets the component ref.
height number
If provided, forces the preview image to be this height.
iconProps IIconProps
The props for the icon associated with this document type.
imageFit ImageFit
Used to determine how to size the image to fit the dimensions of the component. If both dimensions are provided, then the image is fit using ImageFit.scale, otherwise ImageFit.none is used.
imageSrc string
Path to the preview image.
styles IStyleFunctionOrObject<IDocumentCardImageStyleProps, IDocumentCardImageStyles>
Call to provide customized styling that will layer on top of the variant rules
theme ITheme
Theme provided by HOC.
width number
If provided, forces the preview image to be this width.
ariaLabel string
Aria label for the link to the document location.
className string
Optional override class name
componentRef IRefObject<IDocumentCardLocation>
Gets the component ref.
location string
Text for the location of the document.
locationHref string
URL to navigate to for this location.
onClick (ev?: React.MouseEvent<HTMLElement>) => void
Function to call when the location is clicked.
styles IStyleFunctionOrObject<IDocumentCardLocationStyleProps, IDocumentCardLocationStyles>
Call to provide customized styling that will layer on top of the variant rules
theme ITheme
Theme provided by HOC.
className string
Optional override class name
componentRef IRefObject<IDocumentCardLogo>
Gets the component ref.
logoIcon string
Describes DocumentCard Logo badge.
logoName string
Describe Logo name, optional.
styles IStyleFunctionOrObject<IDocumentCardLogoStyleProps, IDocumentCardLogoStyles>
Call to provide customized styling that will layer on top of the variant rules
theme ITheme
Theme provided by HOC.
className string
Optional override class name
componentRef IRefObject<IDocumentCardPreview>
Gets the component ref.
getOverflowDocumentCountText (overflowCount: number) => string
The function return string that will describe the number of overflow documents. such as (overflowCount: number) =\> +${ overflowCount } more
,
previewImages IDocumentCardPreviewImage[]
One or more preview images to display.
styles IStyleFunctionOrObject<IDocumentCardPreviewStyleProps, IDocumentCardPreviewStyles>
Call to provide customized styling that will layer on top of the variant rules
theme ITheme
Theme provided by HOC.
accentColor string
Hex color value of the line below the card, which should correspond to the document type. This should only be supplied when using the 'compact' card layout.
Deprecated at v4.17.1, to be removed at \>= v5.0.0.
children React.ReactNode
Child components to render within the card.
className string
Optional override class name
componentRef IRefObject<IDocumentCard>
Optional callback to access the IDocumentCard interface. Use this instead of ref for accessing the public methods and properties of the component.
onClick (ev?: React.SyntheticEvent<HTMLElement>) => void
Function to call when the card is clicked or keyboard Enter/Space is pushed.
onClickHref string
A URL to navigate to when the card is clicked. If a function has also been provided, it will be used instead of the URL.
onClickTarget string
A target browser context for opening the link. If not specified, will open in the same tab/window.
role string
Aria role assigned to the documentCard (Eg. button, link). Use this to override the default assignment.
styles IStyleFunctionOrObject<IDocumentCardStyleProps, IDocumentCardStyles>
Call to provide customized styling that will layer on top of the variant rules
theme ITheme
Theme provided by HOC.
type DocumentCardType
The type of DocumentCard to display.
className string
Optional override class name
componentRef IRefObject<IDocumentCardStatus>
Gets the component ref.
status string
Describe status information. Required field.
statusIcon string
Describes DocumentCard status icon.
styles IStyleFunctionOrObject<IDocumentCardStatusStyleProps, IDocumentCardStatusStyles>
Call to provide customized styling that will layer on top of the variant rules
theme ITheme
Theme provided by HOC.
className string
Optional override class name
componentRef IRefObject<IDocumentCardTitle>
Gets the component ref.
shouldTruncate boolean
Whether we truncate the title to fit within the box. May have a performance impact.
showAsSecondaryTitle boolean
Whether show as title as secondary title style such as smaller font and lighter color.
styles IStyleFunctionOrObject<IDocumentCardTitleStyleProps, IDocumentCardTitleStyles>
Call to provide customized styling that will layer on top of the variant rules
theme ITheme
Theme provided by HOC.
title string
Title text. If the card represents more than one document, this should be the title of one document and a "+X" string. For example, a collection of four documents would have a string of "Document.docx +3".