style: metadata list styles

This commit is contained in:
jialin
2026-02-03 18:21:08 +08:00
parent 2211009cce
commit 6fd886b27a
2 changed files with 9 additions and 1 deletions
@@ -17,6 +17,9 @@ interface WrapperProps {
wrapper?: React.CSSProperties; wrapper?: React.CSSProperties;
}; };
button?: React.ReactNode; button?: React.ReactNode;
styles?: {
wrapper?: React.CSSProperties;
};
} }
const Container = styled.div` const Container = styled.div`
+6 -1
View File
@@ -32,6 +32,9 @@ interface MetadataListProps {
description?: React.ReactNode; description?: React.ReactNode;
disabled?: boolean; disabled?: boolean;
btnText?: string; btnText?: string;
styles?: {
wrapper?: React.CSSProperties;
};
onAdd?: () => void; onAdd?: () => void;
onDelete?: (index: number, item: any) => void; onDelete?: (index: number, item: any) => void;
children?: (item: any, index: number) => React.ReactNode; children?: (item: any, index: number) => React.ReactNode;
@@ -45,10 +48,12 @@ const MetadataList: React.FC<MetadataListProps> = ({
btnText, btnText,
children, children,
onDelete, onDelete,
onAdd onAdd,
styles
}) => { }) => {
return ( return (
<Wrapper <Wrapper
styles={styles}
label={label} label={label}
description={description} description={description}
onAdd={onAdd} onAdd={onAdd}