@hackplan/polaris
Version:
Shopify’s product component library
12 lines (11 loc) • 355 B
TypeScript
/// <reference types="react" />
export interface Props {
/** Label content */
children?: string;
/** A unique identifier for the label */
id: string;
/** Visually hide the label */
hidden?: boolean;
}
export declare function labelID(id: string): string;
export default function Label({ children, id, hidden }: Props): JSX.Element;