DefinitelyTyped/types/gestalt/gestalt-tests.tsx
Nicolás Serrano Arévalo 93016410a9 Gestalt: A set of React UI components that supports Pinterest’s design language (#27279)
* Avatar Props Interface
:

* Box Props Interface

* Button Props Interface

* Card Props Interface

* Nicked the types, Column Props Interface

* Container Interface Props

* GroupAvatar interface

* Finished

* Linted and fixed:

* 2.6

* Added Project Github URL
2018-07-23 10:20:20 -07:00

29 lines
572 B
TypeScript

import * as React from "react";
import {
Avatar,
Box,
Button,
Card,
Checkbox,
Column,
Container,
GroupAvatar,
Icon,
IconButton
} from "gestalt";
<Avatar name="Nicolas" />;
<Box />;
<Button text={"Click me"} />;
<Card />;
<Checkbox id={"1"} onChange={() => {}} />;
<Column span={1} />;
<Container />;
<GroupAvatar collaborators={[{ name: "nicolas" }]} />;
<Icon
accessibilityLabel={"sup"}
icon={"add"}
dangerouslySetSvgPath={{ __path: "something" }}
/>;
<IconButton accessibilityLabel={"something"} icon={"add-pin"} />;