- Updated dependencies [e860150]
- @bigcommerce/[email protected]
- Updated dependencies [01a5b20]
- @bigcommerce/[email protected]
- @bigcommerce/[email protected]
- eef4d38: Fix header wrapping on smaller screens
- 66bc0c8: Fixed page width definition to expand to the available area
- fd0ab6e: Added ActionBar component to complement the overall Page pattern
- a3e0fda: Updates the
Page
andActionBar
components to work outside of iframes. In the context of our Control Panel, we may have pages that are directly rendered. This allows a "fixed" position item to float only within the page context. - 14ddc22: Removes unused PropsWithChildren type.
- Updated dependencies [8e09cdf]
- @bigcommerce/[email protected]
-
cc19989: Releases
@bigcommerce/big-design-pattern
, a collections of useful patterns for BigDesign.A header component that can be used to display a title, description, and actions.
import { Text, Link } from '@bigcommerce/big-design'; import { AddIcon. ArrowDropDownIcon } from '@bigcommerce/big-design-icons'; import { Header } from '@bigcommerce/big-design-patterns'; export const Component = () => { return ( <Header actions={[ { text: 'Main action', variant: 'primary', iconLeft: <AddIcon />, }, { items: [], toggle: { text: 'Secondary', variant: 'secondary', iconRight: <ArrowDropDownIcon />, }, }, ]} backLink={{ text: 'Back link', href: '#', onClick: () => { window.alert('Back button clicked'); }, }} badge={{ variant: 'primary', label: 'Beta', }} description={ <Text> Main description of the page. It provides a comprehensive overview, accurately capturing the essence of the topic in a concise manner.{' '} <Link external={true} href="#" target="_blank"> Learn more </Link> </Text> } icon={<img alt="" height={40} src="logo.svg" width={40} />} title="Page Title" /> ); };
A page component that can be used to display a header and main content.
import { Panel } from '@bigcommerce/big-design'; import { Page, Header } from '@bigcommerce/big-design-patterns'; export const Component = () => { return ( <Page background={{ src: 'background.jpg', }} header={<Header {...} />} message={{ header: 'Optional headline', type: 'info', messages: [ { text: 'Required description copy.', link: { text: 'Optional link', href: '#' } }, ], }} > <Panel header="Main content"> ... </Panel> </Page> ); };