Skip to content

Instantly share code, notes, and snippets.

@PTKC
PTKC / SomeComponent.tsx
Last active October 22, 2023 15:31
Google Autocomplete Example with Ant Design
import { Card, Col, Divider, Form, Input, Row } from "antd";
import { LocationSearchInput } from "./location-search";
import { geocodeByAddress, getLatLng } from "react-places-autocomplete";
import { FormComponentProps } from "antd/lib/form/Form";
type Props = {} & FormComponentProps;
type State = {
address: string;
};
@PTKC
PTKC / table-example.tsx
Created January 7, 2019 09:40
Ant Design Table with Ant Motion example
import { Input, Table } from "antd";
import QueueAnim from "rc-queue-anim";
import React from "react";
const TextArea = Input.TextArea;
const AnimationWrapper = ({ ...props }) => <QueueAnim duration={1000} component="tbody" {...props} />;
const DataSource = [
{
id: "content-1",