Screen Size

This composable provides easy way to check the window size.

Mobile Button
export default defineComponent({
  setup() {
    const { isXs } = useScreenSize();

    return () => {
      if (isXs.value) {
        return (
          <TButton color="primary" design="flat">
            Mobile Button
          </TButton>
        );
      }
      return (
        <TButton color="primary" design="flat">
          Desktop Button
        </TButton>
      );
    };
  },
});