Skip to content

Commit

Permalink
docs: add missing 'export' statements
Browse files Browse the repository at this point in the history
  • Loading branch information
kripod committed Oct 9, 2020
1 parent dc32577 commit 3c10d78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ import { PolymorphicComponent } from "react-polymorphic-box";
import styled from "styled-components";

// Component-specific props
type HeadingProps = {
export type HeadingProps = {
color?: string;
};

// An HTML tag or a different React component can be rendered by default
const defaultElement = "h2";

const Heading: PolymorphicComponent<
export const Heading: PolymorphicComponent<
HeadingProps, // Merged with props from the underlying element type
typeof defaultElement // Default element type (optional, defaults to 'div')
> = styled(defaultElement)<HeadingProps>`
Expand Down

0 comments on commit 3c10d78

Please sign in to comment.