/** * 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'; import { FONT_OPTIONS } from '../../lib/fonts'; const StyleSettingsSectionCompact: React.FC = ({ values, onChange, }) => { return (

Dimensions = % of canvas, 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)} placeholder='e.g. 1' />
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(...)' />
onChange('backgroundColor', e.target.value)} placeholder='#E7DDB5' />
onChange('color', e.target.value)} placeholder='#131C22' />
); }; export default StyleSettingsSectionCompact;