Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/components/src/components/property/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
export type { ParamHeadProps } from "./param-head";
export { ParamHead } from "./param-head";
export type {
DeprecatedPillProps,
InfoPillProps,
RequiredPillProps,
} from "./pills";
export { DeprecatedPill, InfoPill, RequiredPill } from "./pills";
export type { PropertyProps } from "./property";
export { Property } from "./property";
14 changes: 12 additions & 2 deletions packages/components/src/components/property/pills.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ const InfoPill = ({ children, prefix, className }: InfoPillProps) => {
);
};

const RequiredPill = ({ label }: { label?: string }) => {
type RequiredPillProps = {
label?: string;
};

const RequiredPill = ({ label }: RequiredPillProps) => {
if (!label) {
return null;
}
Expand All @@ -39,7 +43,11 @@ const RequiredPill = ({ label }: { label?: string }) => {
);
};

const DeprecatedPill = ({ label }: { label?: string }) => {
type DeprecatedPillProps = {
label?: string;
};

const DeprecatedPill = ({ label }: DeprecatedPillProps) => {
if (!label) {
return null;
}
Expand All @@ -55,3 +63,5 @@ const DeprecatedPill = ({ label }: { label?: string }) => {
};

export { InfoPill, RequiredPill, DeprecatedPill };

export type { InfoPillProps, RequiredPillProps, DeprecatedPillProps };
Loading