Box
component that allows you to use "style props" in your components allowing you to rapidly build web & native applications.Learn more<Card borderRadius="5" paddingY="major-4" width="300px"><Stack spacing="major-2" alignX="center"><AvatarborderRadius="100%"src="https://bit.ly/3tve2fu"size="large"/><Stack alignX="center" spacing="major-1"><Heading fontSize="500">Jake Moxey</Heading><Textuse="h2"color="text100"fontSize="150"fontWeight="500"textTransform="uppercase">Bumbag Entrepreneur</Text></Stack><Buttonuse="a"href="https://twitter.com/jxom_"iconBefore="solid-twitter"palette="twitter"variant="outlined"></Button></Stack></Card>
setColorMode
function! You can also create other custom modes as well (such as: Christmas mode or Dank mode).Learn morefunction Example() {const { colorMode, setColorMode } = useColorMode();return (<Stack alignX="center"><Textcolor="text100"fontSize="100"fontWeight="500"textTransform="uppercase">Current mode</Text><Text fontWeight="500">{colorMode}</Text><Set><Button onClick={() => setColorMode('default')}>Light</Button><Button onClick={() => setColorMode('dark')}>Dark</Button></Set></Stack>)}
<Alert title="An error occurred" type="danger">We were unable to save your changes.</Alert>
<divrole="alert"aria-labelledby="alertTitle"aria-describedby="alertDescription"><div id="alertTitle">An error occurred</div><div id="alertDescription">We were unable to save your changes.</div></div>
const theme = {fonts: {default: '"Comic Sans MS", sans-serif',heading: '"Helvetica", sans'},palette: {primary: '#574feb',success: '#0a7d33',danger: '#da1717',warning: '#ed9c22'},Button: {defaultProps: {palette: 'primary'}}}<BumbagProvider theme={theme}>...</BumbagProvider>
<GroupbackgroundColor="background"altitude="300"borderRadius="4"><Imagefit="cover"width="200px"src="https://bit.ly/3fCkvhp"/><Level orientation="vertical" padding="major-2"><Stack spacing="major-1"><Heading fontSize="400">The Local Hostel</Heading><Tag palette="info" variant="tint">Great for solo travellers</Tag><Paragraph color="text100" fontSize="100"><Icon icon="solid-map-marker-alt" marginRight="minor-1" />6km from city center</Paragraph></Stack><Paragraph fontSize="300">from <Text fontWeight="bold">$35</Text> a night</Paragraph></Level></Group>
6km from city center
from $35 a night