menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

geist-deprecated

Redirect to https://github.com/geist-org/react/discussions

Channels
Team

Extending Component Props types

November 3, 2020 at 11:46am

Extending Component Props types

November 3, 2020 at 11:46am (Edited 11 months ago)
I'm using Typescript and I would like to extend components props is there a way to get the props types?
This is an example of what I want to achieve:
import React from "react';
// some other libraries would give you access to the component types like PageProps
import { Page, PageProps } from '@geist-ui/react';
interface LayoutProps extends PageProps {}
...
No messages yet