Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

600 B
Raw Blame
import { Box as Box, Time as Time } from "../components";

const Component = () => {
  return (
    <Box className={`w-box`}>
      <Time datetime={"2026-07-06T09:00:00Z"} className={`w-time`}>
        {"Jul 6, 2026, 09:00"}
      </Time>
    </Box>
  );
};

export default {
  title: "Components/Time",
};

const Story = {
  render() {
    return (
      <>
        <style>
          {`
@layer presets {
  div.w-box {
    box-sizing: border-box
  }
  time.w-time {
    box-sizing: border-box
  }
}

      `}
        </style>
        <Component />
      </>
    );
  },
};

export { Story as Time };