diff --git a/site/components/illustrations/theme/transition-presets/predefined-transition-presets/maxheightchange.tsx b/site/components/illustrations/theme/transition-presets/predefined-transition-presets/maxheightchange.tsx new file mode 100644 index 0000000000..a1f51b3f19 --- /dev/null +++ b/site/components/illustrations/theme/transition-presets/predefined-transition-presets/maxheightchange.tsx @@ -0,0 +1,149 @@ +import React from 'react'; +import {getSSRId} from 'newskit'; +import {Svg} from '../../../svg'; +import {Path} from '../../../path'; +import {Rect} from '../../../rect'; + +export const MaxHeightChange: React.FC = () => { + const filter0 = getSSRId(); + const filter1 = getSSRId(); + + return ( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ); +}; + +export default MaxHeightChange; diff --git a/site/pages/theme/presets/transition-presets.tsx b/site/pages/theme/presets/transition-presets.tsx index 0f8432ca91..94c94690fb 100644 --- a/site/pages/theme/presets/transition-presets.tsx +++ b/site/pages/theme/presets/transition-presets.tsx @@ -335,6 +335,15 @@ const PRESETS = [ implementation: 'Can be applied to components to achieve a width change when interacting eg. applied to the expandable horizontal volume control audio player subcomponent on hover or focus.', }, + { + example: getImage( + 'theme/transition-presets/predefined-transition-presets/maxheightchange', + ), + token: 'maxHeightChange', + description: 'Expands height (max-height) of the child element.', + implementation: + 'Can be applied to components when interacting eg. on click.', + }, ]; const USER_INTERACTION = [