Skip to content

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Aug 4, 2025

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@obosbbl/grunnmuren-react@3.0.1

Patch Changes

  • 60d6e26: New <Tab> component in beta, usage:

    import {
      UNSAFE_Tab as Tab,
      UNSAFE_TabList as TabList,
      UNSAFE_TabPanel as TabPanel,
      UNSAFE_Tabs as Tabs,
    } from "./tabs";
    
    const MyTabs = () => (
      <Tabs>
        <TabList aria-label="Boligkjøp">
          <Tab id="grunnpris">Grunnpris</Tab>
          <Tab id="tilvalg">Tilvalg</Tab>
          <Tab id="finansiering">Finansiering</Tab>
        </TabList>
        <TabPanel id="grunnpris">
          <h3 className="mb-4 font-semibold text-lg">Grunnpris</h3>
          <p>
            Grunnprisen inkluderer alle standardspesifikasjoner som er definert
            for boligen. Dette omfatter kjøkken, bad, gulv og andre grunnutstyr.
          </p>
        </TabPanel>
        <TabPanel id="tilvalg">
          <p>
            <h3 className="mb-4 font-semibold text-lg">Tilvalg</h3>
            Her kan du velge oppgraderinger som hvitevarer, gulvtyper, fliser og
            andre tilpasningsmuligheter for å skape ditt drømmehjem.
          </p>
        </TabPanel>
        <TabPanel id="finansiering">
          <h3 className="mb-4 font-semibold text-lg">Finansiering</h3>
          <p>
            OBOS Bank tilbyr konkurransedyktige boliglån med gunstige vilkår for
            våre medlemmer. Få hjelp til å finansiere ditt boligkjøp.
          </p>
        </TabPanel>
      </Tabs>
    );

    Note that the id of each <Tab> must correspond to the id of a <Tabpanel>. The order of the <Tab> components determines the order, and the order of the <TabPanel> components is insignificant.

    The component supports both horizontal and vertical orientation:

    const MyVerticalTabs = () => (
      <Tabs orientation="vertical">
        <TabList aria-label="Boligkjøp">
          <Tab id="grunnpris">Grunnpris</Tab>
          <Tab id="tilvalg">Tilvalg</Tab>
          <Tab id="finansiering">Finansiering</Tab>
        </TabList>
        <TabPanel id="grunnpris">
          <h3 className="mb-4 font-semibold text-lg">Grunnpris</h3>
          <p>
            Grunnprisen inkluderer alle standardspesifikasjoner som er definert
            for boligen. Dette omfatter kjøkken, bad, gulv og andre grunnutstyr.
          </p>
        </TabPanel>
        <TabPanel id="tilvalg">
          <p>
            <h3 className="mb-4 font-semibold text-lg">Tilvalg</h3>
            Her kan du velge oppgraderinger som hvitevarer, gulvtyper, fliser og
            andre tilpasningsmuligheter for å skape ditt drømmehjem.
          </p>
        </TabPanel>
        <TabPanel id="finansiering">
          <h3 className="mb-4 font-semibold text-lg">Finansiering</h3>
          <p>
            OBOS Bank tilbyr konkurransedyktige boliglån med gunstige vilkår for
            våre medlemmer. Få hjelp til å finansiere ditt boligkjøp.
          </p>
        </TabPanel>
      </Tabs>
    );

    Horizontal tabs will be scrollable if the <Tabs> overflows it's container.

@github-actions github-actions bot force-pushed the changeset-release/main branch from 520cd9c to f9cc00f Compare August 5, 2025 10:37
@github-actions github-actions bot force-pushed the changeset-release/main branch from f9cc00f to f4a6259 Compare August 5, 2025 11:30
@oscarcarlstrom oscarcarlstrom merged commit 08db27f into main Aug 5, 2025
@oscarcarlstrom oscarcarlstrom deleted the changeset-release/main branch August 5, 2025 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant