/** * StyleSettingsSectionCompact * * Compact CSS styling fields for the constructor sidebar. * Uses smaller inputs and labels to fit in the narrow sidebar. */ import React from 'react'; import type { StyleSettingsSectionProps } from './types'; const StyleSettingsSectionCompact: React.FC = ({ values, onChange, }) => { return (

Numbers only: width=vw, height=vh, border/radius=px

onChange('width', e.target.value)} placeholder='e.g. 24' />
onChange('height', e.target.value)} placeholder='e.g. 8' />
onChange('minWidth', e.target.value)} />
onChange('maxWidth', e.target.value)} />
onChange('minHeight', e.target.value)} />
onChange('maxHeight', e.target.value)} />
onChange('margin', e.target.value)} placeholder='0 auto' />
onChange('padding', e.target.value)} placeholder='0.5rem' />
onChange('gap', e.target.value)} />
onChange('fontSize', e.target.value)} placeholder='0.875rem' />
onChange('lineHeight', e.target.value)} />
onChange('fontWeight', e.target.value)} placeholder='500' />
onChange('border', e.target.value)} placeholder='0' />
onChange('borderRadius', e.target.value)} placeholder='0' />
onChange('opacity', e.target.value)} placeholder='0..1' />
onChange('zIndex', e.target.value)} placeholder='1' />
onChange('boxShadow', e.target.value)} placeholder='0 4px 12px rgba(...)' />
); }; export default StyleSettingsSectionCompact;