gestalt
Version:
A set of React UI components which enforce Pinterest's design language
24 lines (23 loc) • 942 B
TypeScript
import { ReactNode } from 'react';
type Props = {
/**
* The content of the label, typically [Text](https://gestalt.pinterest.systems/web/text) or similar.
*/
children?: ReactNode;
/**
* Unique id of the element this label is describing.
*/
htmlFor: string;
};
/**
* Use the [Label](https://gestalt.pinterest.systems/web/label) component to connect a label with a form component in an accessible way.
*
* 
* 
*
*/
declare function Label({ children, htmlFor }: Props): import("react/jsx-runtime").JSX.Element;
declare namespace Label {
var displayName: string;
}
export default Label;