DocSpace-client/web/ASC.Web.Storybook/stories/module-tile/primary
2019-07-09 17:54:30 +03:00
..
primary.tile.stories.js Moved Storybook to separated ASC.Web.Storybook folder (issue: 'git clean -xdf' removes storybook files every time) 2019-07-09 17:54:30 +03:00
README.md Moved Storybook to separated ASC.Web.Storybook folder (issue: 'git clean -xdf' removes storybook files every time) 2019-07-09 17:54:30 +03:00

ModuleTile

Usage

import { ModuleTile } from 'asc-web-components';

Description

Module tile is used for navigation to module page.

Usage

<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
title string - - - Title of tile
imageUrl string - - - Image url/path
link string - - - Link to return on onClick
description string - - - Description of primary tile
isPrimary bool - - - Tells when the tile should be primary
onClick func - - What the tile will trigger when clicked