구성 요소 데이터 테이블 데이터 테이블 다크 모드

데이터 테이블 다크 모드

다크 모드를 사용하는 반응형 데이터 테이블 구성 요소

미리 보기

HTML 코드

<div class="overflow-x-auto bg-gray-900 text-pastel-light"
>
    <table class="min-w-full table-auto">
        <thead>
            <tr class="bg-gray-800">
                <th class="px-4 py-2 text-left text-pastel-lighter">Name</th>
                <th class="px-4 py-2 text-left text-pastel-lighter">Title</th>
                <th class="px-4 py-2 text-left text-pastel-lighter">Status</th>
                <th class="px-4 py-2 text-left text-pastel-lighter">Role</th>
                <th class="px-4 py-2"></th>
            </tr>
        </thead>
        <tbody>
            <tr class="border-b border-gray-700 hover:bg-gray-700">
                <td class="px-4 py-2 flex items-center">
                    <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Avatar" class="h-8 w-8 rounded-full mr-2">
                    John Doe
                </td>
                <td class="px-4 py-2">Software Engineer</td>
                <td class="px-4 py-2">
                    <span class="px-2 py-1 bg-green-600 text-white rounded-full text-xs">Active</span>
                </td>
                <td class="px-4 py-2">Member</td>
                <td class="px-4 py-2 text-right">
                    <button class="bg-pastel-medium hover:bg-pastel-dark text-white py-1 px-3 rounded text-xs">Edit</button>
                </td>
            </tr>
            <tr class="border-b border-gray-700 hover:bg-gray-700">
                <td class="px-4 py-2 flex items-center">
                    <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Avatar" class="h-8 w-8 rounded-full mr-2">
                    Jane Smith
                </td>
                <td class="px-4 py-2">UI/UX Designer</td>
                <td class="px-4 py-2">
                    <span class="px-2 py-1 bg-yellow-600 text-white rounded-full text-xs">Pending</span>
                </td>
                <td class="px-4 py-2">Admin</td>
                <td class="px-4 py-2 text-right">
                    <button class="bg-pastel-medium hover:bg-pastel-dark text-white py-1 px-3 rounded text-xs">Edit</button>
                </td>
            </tr>
            <tr class="border-b border-gray-700 hover:bg-gray-700">
                <td class="px-4 py-2 flex items-center">
                    <img src="https://randomuser.me/api/portraits/men/76.jpg" alt="Avatar" class="h-8 w-8 rounded-full mr-2">
                    Robert Johnson
                </td>
                <td class="px-4 py-2">Project Manager</td>
                <td class="px-4 py-2">
                    <span class="px-2 py-1 bg-red-600 text-white rounded-full text-xs">Inactive</span>
                </td>
                <td class="px-4 py-2">Member</td>
                <td class="px-4 py-2 text-right">
                    <button class="bg-pastel-medium hover:bg-pastel-dark text-white py-1 px-3 rounded text-xs">Edit</button>
                </td>
            </tr>
             <tr class="border-b border-gray-700 hover:bg-gray-700">
                <td class="px-4 py-2 flex items-center">
                    <img src="https://randomuser.me/api/portraits/women/12.jpg" alt="Avatar" class="h-8 w-8 rounded-full mr-2">
                    Emily Davis
                </td>
                <td class="px-4 py-2">Data Analyst</td>
                <td class="px-4 py-2">
                    <span class="px-2 py-1 bg-green-600 text-white rounded-full text-xs">Active</span>
                </td>
                <td class="px-4 py-2">Observer</td>
                <td class="px-4 py-2 text-right">
                    <button class="bg-pastel-medium hover:bg-pastel-dark text-white py-1 px-3 rounded text-xs">Edit</button>
                </td>
            </tr>
        </tbody>
    </table>
</div>

관련 구성 요소

데이터 테이블 구성 요소

Neumorphism 디자인, 트라이어딕 색 구성표 및 다크 모드 지원을 갖춘 반응형 데이터 테이블 구성 요소로, 블로그 또는 콘텐츠 사이트에 적합합니다.

열다

데이터 테이블

머티리얼 디자인 스타일의 반응형 데이터 테이블 구성요소로, 자바스크립트 없이 다크 모드와 반응형 동작을 지원합니다. 데모용 자리 표시자 이미지가 포함되어 있습니다.

열다

데이터 테이블 구성 요소

다크 모드를 지원하는 Tailwind CSS로 설계된 미니멀하고 반응형이 빠른 데이터 테이블 구성 요소입니다.

열다