API Reference > ui-components > LineWeight > LineWeightSwatchProps LineWeightSwatchProps Interface Beta Properties for the LineWeightSwatch React component Extends ButtonHTMLAttributes<HTMLButtonElement> CommonProps Methods Name Description onClick(): void Optional function to run when user selects a line weight swatch Properties Name Type Description colorDef undefined | ColorDef color specification disabled undefined | boolean Disabled or not hideLabel undefined | boolean hide the weight label readonly undefined | boolean Readonly or not weight number color specification Defined in ui/components/src/ui-components/lineweight/Swatch.tsx Line 19 Last Updated: 11 June, 2024