Tile
A tile is a rounded square that takes an asset and represents a noun.Installation
| Install | yarn add @atlaskit/tile |
|---|---|
| Source | Bitbucket.org, (opens new window) |
| npm | @atlaskit/tile, (opens new window) |
| Bundle | unpkg.com, (opens new window) |
Props
Tile props
| Description | The background color of the tile. Accepts design tokens representing background color.
Defaults to |
|---|---|
| Type | "color.background.accent.lime.subtlest" | "color.background.accent.lime.subtler" | "color.background.accent.lime.subtle" | "color.background.accent.lime.bolder" | "color.background.accent.red.subtlest" | ... 53 more ... | "black" |
| Description | The asset to be displayed inside the tile. This should represent a noun. |
|---|---|
| Type | string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal |
| Description | Whether the tile has a border. Defaults to |
|---|---|
| Type | boolean |
| Description | Whether the tile applies internal inset / padding. Used to provide appropriate spacing for assets when needed. Defaults to |
|---|---|
| Type | boolean |
| Description | The label for the icon. If the tile is decorative, this can be set to an empty string. |
|---|---|
| Type | string |
| Description | The size of the tile.
|
|---|---|
| Type | "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" |
| Description | A |
|---|---|
| Type | string |
TileSkeleton props
| Description | Overrides the default color of skeleton, and overrides the default shimmering start color if |
|---|---|
| Type | string |
| Description | Enables the shimmering animation. |
|---|---|
| Type | boolean |
| Description | Overrides the default shimmering ending color of skeleton. |
|---|---|
| Type | string |
| Description | No description. |
|---|---|
| Default | "medium" |
| Type | "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" |
| Description | A |
|---|---|
| Type | string |