@highlight-ui/tile
v4.2.8
Published
[](https://www.npmjs.com/package/@highlight-ui/tile) [](https://www.personio.design/40d648a47/v/0/p/3
Maintainers
Keywords
Readme
@highlight-ui/tile
Using npm:
npm install @highlight-ui/tileUsing yarn:
yarn add @highlight-ui/tileUsing pnpm:
pnpm install @highlight-ui/tileIn your (S)CSS file:
@import url('@highlight-ui/tile');Once the package is installed, you can import the library:
import { Tile, LinkTile } from '@highlight-ui/tile';Usage
import React from 'react';
import { Tile } from '@highlight-ui/tile';
export default function TileExample() {
return (
<Tile>
<Typography component="h2" token="heading-2xl" color="text-subdued">
35
</Typography>
<Typography component="h6" token="heading-small" color="text-subdued">
employees
</Typography>
</Tile>
);
}Props 📜
Tile
| Prop | Type | Required | Default | Description |
| :---------- | :---------------- | :------- | :------ | :----------------------------------- |
| children | React.ReactNode | Yes | | The contents inside the Tile |
| className | string | No | | Allows providing a custom class name |
LinkTile
| Prop | Type | Required | Default | Description |
| :---------- | :---------------- | :------- | :------ | :--------------------------------------------- |
| children | React.ReactNode | Yes | | The contents inside the Tile |
| href | string | Yes | | Specifies the URL of the page the link goes to |
| target | React.ReactNode | No | | Specifies where to open the link |
| className | string | No | | Allows providing a custom class name |
Contributing 🖌️
Please visit personio.design for usage guidelines and visual examples.
If you're interested in contributing, please visit our contribution page.
