dotkom / design-system

Component library, maybe
https://design.online.ntnu.no
MIT License
4 stars 4 forks source link

Add tab components #5

Closed torjusti closed 4 years ago

torjusti commented 5 years ago

I messed around with creating a tab component with sliding underline. More work probably needed especially on fonts and colors.

Screenshot from 2019-07-07 18-54-51

plusk commented 4 years ago

What's the status on this @torjusti?

torjusti commented 4 years ago

@plusk , I cleaned it up a bit so that an additional API of this form is supported:

    <Tabs>
        <Tab title="Tab 1">
            Contents of Tab 1.
        </Tab>

        <Tab title="Tab 2">
            Contents of Tab 2.
        </Tab>
    </Tabs>

Feel free to give reviews focusing both on the implementation and the visual details - I feel like this doesn't look very online-y yet.