Updated JSdocs

This commit is contained in:
Alex Holliday committed 2024-05-07 14:30:00 -07:00
1 parent 6359fd52b6
commit bc463802d9
4 files changed
+16 -6

No files matched your search

+8 -4
View File
@@ -21,10 +21,14 @@ const levelConfig = {
};
/**
* @param {Object} Props
* @param {'primary' | 'secondary' | 'tertiary' | 'error'} level - The level of the button
* @param {string} label - The label of the button
* @param {boolean} [disabled] - Whether the button is disabled
* @param {Object} props
* @param {'primary' | 'secondary' | 'tertiary' | 'error'} props.level - The level of the button
* @param {string} props.label - The label of the button
* @param {boolean} [props.disabled] - Whether the button is disabled
* @returns {JSX.Element}
* @example
* // Render an error button
* <Button level="error" label="Error" disabled />
*/
const Button = ({ level, label, disabled }) => {