DocSpace-buildtools/web/ASC.Web.Common/src/components/module-tile
Daniil Senkiv d62de9827e 1. Web.Components: Text: change proptype fontSize from [number, string] to string. Applied to other components.
2. Web.Components: Link: fixed isTextOverflow prop working
3.  Web.Components: RadioButtonGroup, RadioButton: fixed readme
2019-12-10 17:12:38 +03:00
..
index.js 1. Web.Components: Text: change proptype fontSize from [number, string] to string. Applied to other components. 2019-12-10 17:12:38 +03:00
README.md Merge branch 'master' into feature/components-custom-styling 2019-12-04 09:24:17 +03:00
tile.stories.js web: Common: Moved ModuleTile from asc-web-components to asc-web-common 2019-12-03 15:10:07 +03:00
tile.test.js Merge branch 'master' into feature/components-custom-styling 2019-12-04 09:24:17 +03:00

ModuleTile

Module tile is used for navigation to module page

Usage

import { ModuleTile } from "asc-web-common";
<ModuleTile
  title="Documents"
  imageUrl="./modules/documents240.png"
  link="/products/files/"
  description="Create, edit and share documents. Collaborate on them in real-time. 100% compatibility with MS Office formats guaranteed."
  isPrimary={true}
  onClick={action("onClick")}
/>

Properties

Props Type Required Values Default Description
className string - - - Accepts class
description string - - - Description of primary tile
id string - - - Accepts id
imageUrl string - - - Image url/path
isPrimary bool - - - Tells when the tile should be primary
link string - - - Link to return on onClick
onClick func - - What the tile will trigger when clicked
style obj, array - - - Accepts css style
title string - - - Title of tile